Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkJSValEscaperWithNum (0.16 sec)

  1. src/html/template/js_test.go

    		{"module", true},
    	}
    
    	for _, test := range tests {
    		if isJSType(test.in) != test.out {
    			t.Errorf("isJSType(%q) = %v, want %v", test.in, !test.out, test.out)
    		}
    	}
    }
    
    func BenchmarkJSValEscaperWithNum(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		jsValEscaper(3.141592654)
    	}
    }
    
    func BenchmarkJSValEscaperWithStr(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 02:20:11 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top