Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMapKeys (0.09 sec)

  1. src/runtime/map_test.go

    			t.Errorf("OverLoadFactor(%d,%d)=true, want false", count, b)
    		}
    		if !runtime.OverLoadFactor(count+1, b) {
    			t.Errorf("OverLoadFactor(%d,%d)=false, want true", count+1, b)
    		}
    	}
    }
    
    func TestMapKeys(t *testing.T) {
    	type key struct {
    		s   string
    		pad [128]byte // sizeof(key) > abi.MapMaxKeyBytes
    	}
    	m := map[key]int{{s: "a"}: 1, {s: "b"}: 2}
    	keys := make([]key, 0, len(m))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
Back to top