Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSkipFuncCheck (0.2 sec)

  1. src/text/template/parse/parse_test.go

    		tmpl, err := New("").Parse(inp, "", "", make(map[string]*Tree), make(map[string]any))
    		if err == nil || tmpl != nil {
    			t.Errorf("without break func: expected error; got none")
    		}
    	}
    }
    
    func TestSkipFuncCheck(t *testing.T) {
    	oldTextFormat := textFormat
    	textFormat = "%q"
    	defer func() { textFormat = oldTextFormat }()
    	tr := New("skip func check")
    	tr.Mode = SkipFuncCheck
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
Back to top