Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestZeroConvT2x (0.13 sec)

  1. src/runtime/iface_test.go

    	}
    
    	n := testing.AllocsPerRun(1000, func() {
    		if m[TM(0)] {
    			t.Fatalf("0 is present in the map")
    		}
    	})
    	if n != 0 {
    		t.Fatalf("want 0 allocs, got %v", n)
    	}
    }
    
    func TestZeroConvT2x(t *testing.T) {
    	tests := []struct {
    		name string
    		fn   func()
    	}{
    		{name: "E8", fn: func() { e = eight8 }},  // any byte-sized value does not allocate
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 7.5K bytes
    - Viewed (0)
Back to top