Lines Matching refs:testCase
298 for i, testCase := range testCases {
299 t.Run(testCase.name, func(t *testing.T) {
300 targetedProperty.Set(testCase.property)
301 addIdents.Set(testCase.addSet)
302 removeIdents.Set(testCase.removeSet)
303 setString = testCase.setString
305 inAst, errs := parser.ParseAndEval("", strings.NewReader(testCase.input), parser.NewScope(nil))
311 t.Errorf("%+v", testCase)
316 t.Fatalf(" input must only contain a single module definition: %s", testCase.input)
327 if simplifyModuleDefinition(inModuleString) != simplifyModuleDefinition(testCase.output) {
330 t.Errorf(" %s", testCase.output)