- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestMapKeys (0.09 sec)
-
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)