MCPcopy Create free account
hub / github.com/CloudyKit/jet / RunJetTestWithSet

Function RunJetTestWithSet

eval_test.go:110–117  ·  view source on GitHub ↗
(t *testing.T, set *Set, variables VarMap, context interface{}, testName, testExpected string)

Source from the content-addressed store, hash-verified

108}
109
110func 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
119func RunJetTestWithTemplate(t *testing.T, tt *Template, variables VarMap, context interface{}, testExpected string) {
120 if testing.RunTests(func(pat, str string) (bool, error) {

Callers 7

RunJetTestFunction · 0.85
TestEvalAutoescapeFunction · 0.85
TestFileResolveFunction · 0.85
TestIncludeIfNotExistsFunction · 0.85
TestExecReturnFunction · 0.85
TestTryCatchFunction · 0.85
TestWhitespaceControlFunction · 0.85

Calls 2

RunJetTestWithTemplateFunction · 0.85
GetTemplateMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…