(store *store[Key, Value], count uintptr)
| 237 | } |
| 238 | |
| 239 | func (m *Map[Key, Value]) isResizeNeeded(store *store[Key, Value], count uintptr) bool { |
| 240 | l := uintptr(len(store.index)) // l can't be 0 as it gets initialized in New() |
| 241 | fillRate := (count * 100) / l |
| 242 | return fillRate > maxFillRate |
| 243 | } |
| 244 | |
| 245 | func (m *Map[Key, Value]) insertElement(element *ListElement[Key, Value], hash uintptr, key Key, value Value) bool { |
| 246 | var existed, inserted bool |
no outgoing calls
no test coverage detected