blob: d9fa90a86df473717893c490a0ec1dd1734a2a2b [file] [log] [blame]
package config
import (
"path/filepath"
"testing"
assert "github.com/stretchr/testify/require"
"go.skia.org/infra/go/testutils"
)
func TestConfigRead(t *testing.T) {
testutils.SmallTest(t)
m, err := ReadMetrics(filepath.Join("./testdata", "metrics.json5"))
assert.NoError(t, err)
assert.Equal(t, 2, len(m))
assert.Equal(t, "qps", m[0].Name)
assert.Equal(t, "fiddle-sec-violations", m[1].Name)
}