Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestTemplateCloneExecuteRace (0.15 sec)

  1. src/html/template/clone_test.go

    	if wantErr.Error() != gotErr.Error() {
    		t.Errorf("clone error message mismatch want %q got %q", wantErr, gotErr)
    	}
    }
    
    // https://golang.org/issue/16101
    func TestTemplateCloneExecuteRace(t *testing.T) {
    	const (
    		input   = `<title>{{block "a" .}}a{{end}}</title><body>{{block "b" .}}b{{end}}<body>`
    		overlay = `{{define "b"}}A{{end}}`
    	)
    	outer := Must(New("outer").Parse(input))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:48:16 UTC 2022
    - 8K bytes
    - Viewed (0)
Back to top