Beispiel #1
0
func testExecuteError(t *testing.T, opt *common.Opt, msg string) {
	_, err := fint.Execute(opt)
	testExpectErrorWithMessage(t, err, msg)
}
Beispiel #2
0
func testExecuteNormal(t *testing.T, opt *common.Opt, expectedViolations int) {
	v, _ := fint.Execute(opt)
	if len(v) != expectedViolations {
		t.Errorf("Expected violations are [%d] but [%d] found", expectedViolations, len(v))
	}
}