funcj icon indicating copy to clipboard operation
funcj copied to clipboard

Code coverage not complete for property tests in StateTe.java

Open Harmoniguy opened this issue 1 year ago • 1 comments

All property tests in the StateTest.java have missing coverage over lines 172 and 173 of Trampoline.java. I could not figure out a good way to get this coverage while keeping in the scope of the test, as I tried to add something similar to the non-property test testSequenceList. testSequenceList does cover this code, but ideally I would expect that each property test would have as much coverage as possible. This may be out of the scope of the tests.

Harmoniguy avatar May 20 '24 22:05 Harmoniguy

StateTest isn't supposed to test Trampoline other than indirectly by virtue of the fact that State uses it. Lines 172-173 of Trampoline are covered by the TrampolineTest.testFibonacci() test.

jon-hanson avatar May 21 '24 10:05 jon-hanson