Code Coverage


  • Discourse touched me in a no-no place

    That would be like identifying water in the middle of the Atlantic.



  •  Here's a way to improve your coverage figures:

    1. Pull in a huge collection of libraries, together with their complete unit tests. Make sure the libraries are 10 times the size of your code.

    2. Link your code to them (this step is optional).

    3. Try and conceal it from busybodies like Snoofle.

    Voila! Instant 90%+ coverage of your code base! 



  • @PedanticCurmudgeon said:

    That would be like detecting paedophiles employed by the BBC.
     

    Sorry, I think I'm presently Britishing at "like 7".

    I'll go read some youtube comments to reintegrate.



  • @snoofle said:

    Friday morning WTF-is-gong-on-around-here weekly meeting

    New idiomatic expression unlocked!

    @snoofle said:

    I deleted more than 200K LOC and countless JUnit tests from their source tree, rebuilt their application and ran the relevant suite of tests; everything worked.

    It's been said before: you should be paid by line of code removed.

    @snoofle said:

    I ran MY full-swath test case and everything worked.

    So all the bugs are either uncovered by the tests (less likely, since they're your tests) or cancelling each other in some way?



  • @Zecc said:

    It's been said before: you should be paid by line of code removed.
     

    "I seem to have truncated our CVS codebase. My bill for ${millions} will be in the post later."

    Job done.



  • @Cassidy said:

    @Zecc said:

    It's been said before: you should be paid by line of code removed.
     

    "I seem to have truncated our CVS codebase. My bill for ${millions} will be in the post later."

    Job done.

     

    Dunno where this quote came from, but here it is:

     "if Java had TRUE garbage collection, most programs would delete themselves on execution."



  •  Protip: You can use Reflection to improve code coverage numbers, by simply calling every function in the binary with random parameters while ignoring results and eating exceptions.


  • Discourse touched me in a no-no place

    @bgodot said:

     Protip: You can use Reflection to improve code coverage numbers, by simply calling every function in the binary with random parameters while ignoring results and eating exceptions.

    That's actually a thing! Fuzz testing.



  • When I was doing testing for Microsoft Games they had a whole server rack full of xboxes doing fuzz testing with random controller inputs. It was pretty epic.



  • @blakeyrat said:

    When I was doing testing for Microsoft Games they had a whole server rack full of xboxes doing fuzz testing with random controller inputs. It was pretty epic.

    I agree, properly done, Fuzz testing can reveal issues that are almost certain to escape "planned"/"deterministic" testing.



  • @blakeyrat said:

    When I was doing testing for Microsoft Games they had a whole server rack full of xboxes doing fuzz testing with random controller inputs. It was pretty epic.

    Bonus points if you had actual police officers pushing the buttons and joysticks at random.

     



  • @Zecc said:

    Bonus points if you had actual police officers pushing the buttons and joysticks at random.

    No, that would be copper testing.



  • @Qwerty said:

    @Zecc said:
    Bonus points if you had actual police officers pushing the buttons and joysticks at random.

    No, that would be copper testing.

    Unless they're battery-powered, then it's copper topping.



  • @blakeyrat said:

    @Qwerty said:
    @Zecc said:
    Bonus points if you had actual police officers pushing the buttons and joysticks at random.

    No, that would be copper testing.

    Unless they're battery-powered, then it's copper topping.

     

     

    fuzz testing on my group involves randomly generated unicode strings (numeric generated, not generated on code page).  not my tests.. but they can blow things up wonderfully if you slightly mishandle a string.



  • @blakeyrat said:

    @Qwerty said:
    @Zecc said:
    Bonus points if you had actual police officers pushing the buttons and joysticks at random.

    No, that would be copper testing.

    Unless they're battery-powered, then it's copper topping.

    The police prefer to avoid battery, though.


  • Discourse touched me in a no-no place

    That would depend on who's being battered.



  • Fish jokes are in the OTHER thread, thankUvewwyMuch.

     



  • You can also batter things like bacon before deep-frying, so it still works (kinda).



  • @locallunatic said:

    You can also batter things like bacon before deep-frying, so it still works (kinda).

    Only in America!



  •  I've been wondering, is there any food that is baters, deep friend, then battered again, and deep fried again?

    I was thinking of doing that to bacon strips, lightly brushing them with maple syrup, then rolling them in bacon bits.



  • @bgodot said:

    I've been wondering, is there any food that is baters, deep friend, then battered again, and deep fried again?

    Your ideas are intriguing to me, and I wish to subscribe to your newsletter.


  • Discourse touched me in a no-no place

    @blakeyrat said:

    @Qwerty said:
    @Zecc said:
    Bonus points if you had actual police officers pushing the buttons and joysticks at random.

    No, that would be copper testing.

    Unless they're battery-powered, then it's copper topping.

    That sounds kinky somehow.



  • @bgodot said:

    is there any food that is baters, deep friend, then battered again, and deep fried again?
     

    UK have two responses: 

    • Deep Fried Mars Bar - something is covered in melted chocolate and allowed to cool, then dripped in batter and deep-fried. It's as strange as it sounds: I managed a third of one before my arteries threatened to physically separate and storm off in protest.
    • Deep Fried Pizza - some variants batter the pizza before deep-frying it.

    It's as bad as it sounds. I've never tried the latter, but it strikes me as turning the cheapest and most nutritionally weak pizza into an even more unhealthy option, if that were possible.


  • Impossible Mission - B

    @blakeyrat said:

    @bgodot said:
    I've been wondering, is there any food that is baters, deep friend, then battered again, and deep fried again?

    Your ideas are intriguing to me, and I wish to subscribe to your newsletter.


Log in to reply

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.