- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestBadFuncNames (0.21 sec)
-
src/html/template/exec_test.go
tmpl := New("X").Funcs( FuncMap{ name: funcNameTestFunc, }, ) if tmpl == nil { t.Fatalf("nil result for %q", name) } } } func TestBadFuncNames(t *testing.T) { names := []string{ "", "2", "a-b", } for _, name := range names { testBadFuncName(name, t) } } func testBadFuncName(name string, t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 24 21:59:12 UTC 2024 - 57.6K bytes - Viewed (0) -
src/text/template/exec_test.go
tmpl := New("X").Funcs( FuncMap{ name: funcNameTestFunc, }, ) if tmpl == nil { t.Fatalf("nil result for %q", name) } } } func TestBadFuncNames(t *testing.T) { names := []string{ "", "2", "a-b", } for _, name := range names { testBadFuncName(name, t) } } func testBadFuncName(name string, t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 60.1K bytes - Viewed (0)