BooleanCat / go-functional

go-functional is a library of iterators to augment the standard library
MIT License
405 stars 23 forks source link

[Bug 🐛]: Restore test coverage to 100% #115

Closed BooleanCat closed 2 months ago

BooleanCat commented 2 months ago

What happened?

After using Go 1.23 and the slices and maps package from the standard library, test coverage dropped to less than 100%. Running make cov demonstrates this.

What did you expect to happen?

make cov demonstrates 100% test coverage.

Which version of go-functional were you using?

Latest on v2.

To Reproduce

See above.

Do you intend to fix this issue yourself?

Yes.

Additional context

I've already fixed coverage in take.go as an example of how to achieve 100% coverage. As a byproduct existing tests that use iter.Pull are no longer needed to maintain coverage.