r/ProgrammerHumor • • Mar 15 '22

static bool isCrazyMurderingRobot = false;

/img/2g1k34ok5kn81.jpg
4.9k Upvotes

257 comments sorted by

View all comments

Show parent comment

3

u/Theonetheycallgreat Mar 15 '22 edited Mar 15 '22

If the code is there then for it to be merged a unit test must have been passed covering that branch and killing a human. I hope they mocked the human dependency.

3

u/10BillionDreams Mar 15 '22

I hope they mocked the human dependency.

How cruel! Not only sending a human to their death, but mocking them in their last moments?

...but at least I can merge now that the tests are passing.

2

u/Gem2578 Mar 15 '22

If there was unit test the it would of failed covering the other branch as you can't enter the else