(t *testing.T)
| 136 | } |
| 137 | |
| 138 | func TestMap_LoadOrStoreZeroValue(t *testing.T) { |
| 139 | t.Parallel() |
| 140 | // The zero value of Map must be usable for LoadOrStore as well. |
| 141 | var m Map[string, int] |
| 142 | val, loaded := m.LoadOrStore("a", 42) |
| 143 | assert.False(t, loaded) |
| 144 | assert.Equal(t, 42, val) |
| 145 | } |
| 146 | |
| 147 | func TestMap_LoadOrStoreConcurrent(t *testing.T) { |
| 148 | t.Parallel() |
nothing calls this directly
no test coverage detected