I'm currently working through a task where I have to write unit tests. These unit tests in theory should test out the entirety of its class isolated from any other classes or function and effectively apply business logic on how these functions/methods are being called.
But where do I draw the line in regards to how much testing I'd need to run? Currently struggling with this PR because there's lots of lines of code (bad I know), but I do need to find out what a complete unit test looks like.
If you had to ask me, a complete unit test is where all the unit tests traverse through all code path and have both positive tests and negative tests being ran to show how the code should be used.
If there's some sort of guidance online, that would be helpful. Otherwise I'm mimicking what unit tests have been approved based on style and usage.