1. So here is your first question.
Don't tell me I'm a jerk.
"But have you seen this function
ever act-u-ally work?"
Nowadays there’s little excuse for not writing Unit tests. But it could be that it’s the test code that’s wrong, or the code it’s testing, or both.
In these cases, you should have a development environment which includes suitable debugging tools.
Or maybe it’s an integration problem.
If you no longer have the ability to debug then you’ll need to be able to trace relevant sections of the code.
Before you can point the finger of blame, you’ve got to find out where its gone wrong.