Having 100% of LOC covered by unit tests certainly feels like a great achievement. But beware – that doesn’t necessarily mean your code is perfectly covered. Lines of code coverage is a really nice indicator of your app’s stability, but is can also hide some risks.
(~6 min read)
FunctionMock is a simple and elegant way to mock away system/global functions in your tests.
(~2 min read) gitlab.com/Avris/FunctionMock