prometheus/pkg/rulefmt/rulefmt_test.go

13 lines
240 B
Go

package rulefmt
import "testing"
func TestParseFileSuccess(t *testing.T) {
if _, errs := ParseFile("testdata/test.yaml"); len(errs) > 0 {
t.Errorf("unexpected errors parsing file")
for _, err := range errs {
t.Error(err)
}
}
}