newTestFreelist get the freelist type from env and initial the freelist
()
| 614 | |
| 615 | // newTestFreelist get the freelist type from env and initial the freelist |
| 616 | func newTestFreelist() Interface { |
| 617 | if env := os.Getenv(TestFreelistType); env == "hashmap" { |
| 618 | return NewHashMapFreelist() |
| 619 | } |
| 620 | |
| 621 | return NewArrayFreelist() |
| 622 | } |
no test coverage detected