Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestAllocationsDecode (0.51 sec)

  1. src/unicode/utf16/utf16_test.go

    		[]rune{0xffff, 0x10000, 0x10001, 0x12345, 0x10ffff}},
    	{[]uint16{0xd800, 'a'}, []rune{0xfffd, 'a'}},
    	{[]uint16{0xdfff}, []rune{0xfffd}},
    }
    
    func TestAllocationsDecode(t *testing.T) {
    	testenv.SkipIfOptimizationOff(t)
    
    	for _, tt := range decodeTests {
    		allocs := testing.AllocsPerRun(10, func() {
    			out := Decode(tt.in)
    			if out == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top