func testExecuteError(t *testing.T, opt *common.Opt, msg string) { _, err := fint.Execute(opt) testExpectErrorWithMessage(t, err, msg) }
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)) } }