Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkQuote (1.12 sec)

  1. src/strconv/quote_test.go

    		}
    		if out := AppendQuoteToGraphic([]byte("abc"), tt.in); string(out) != "abc"+tt.graphic {
    			t.Errorf("AppendQuoteToGraphic(%q, %s) = %s, want %s", "abc", tt.in, out, "abc"+tt.graphic)
    		}
    	}
    }
    
    func BenchmarkQuote(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		Quote("\a\b\f\r\n\t\v\a\b\f\r\n\t\v\a\b\f\r\n\t\v")
    	}
    }
    
    func BenchmarkQuoteRune(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		QuoteRune('\a')
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 9.6K bytes
    - Viewed (0)
Back to top