(idx int)
| 331 | } |
| 332 | |
| 333 | func (t *testSharedDynArray) Get(idx int) Value { |
| 334 | t.RLock() |
| 335 | defer t.RUnlock() |
| 336 | if idx < 0 { |
| 337 | idx += len(t.a) |
| 338 | } |
| 339 | if idx >= 0 && idx < len(t.a) { |
| 340 | return t.a[idx] |
| 341 | } |
| 342 | return nil |
| 343 | } |
| 344 | |
| 345 | func (t *testSharedDynArray) expand(newLen int) { |
| 346 | if newLen > cap(t.a) { |
nothing calls this directly
no outgoing calls
no test coverage detected