(t *testing.T, set *Set, variables VarMap, context interface{}, testName, testExpected string)
| 108 | } |
| 109 | |
| 110 | func RunJetTestWithSet(t *testing.T, set *Set, variables VarMap, context interface{}, testName, testExpected string) { |
| 111 | tt, err := set.GetTemplate(testName) |
| 112 | if err != nil { |
| 113 | t.Errorf("Error parsing templates for test %s: %v", testName, err) |
| 114 | return |
| 115 | } |
| 116 | RunJetTestWithTemplate(t, tt, variables, context, testExpected) |
| 117 | } |
| 118 | |
| 119 | func RunJetTestWithTemplate(t *testing.T, tt *Template, variables VarMap, context interface{}, testExpected string) { |
| 120 | if testing.RunTests(func(pat, str string) (bool, error) { |
no test coverage detected
searching dependent graphs…