OLGKAD / sef18group15-coverage

Algorithms and Data Structures implemented in Java
Apache License 2.0
0 stars 0 forks source link

Tests: BTree<T::combined() #14

Open OLGKAD opened 6 years ago

OLGKAD commented 6 years ago

Add tests to increase branch or path coverage.

Lucasljungberg commented 6 years ago

There is no untested and reachable branch in this function.

The times that the function is called are these: https://github.com/OLGKAD/sef18group15-coverage/blob/80bf99af73ab327465ed2ed10b9fdb5601ea5315/src/com/jwetherell/algorithms/data_structures/BTree.java#L190-L209

In these calls, the argument's parent is never null which is required for the only non-visited branch to be ventured.

I'll look at new paths, but I doubt there are any obvious.