Link Details

Link 902187 thumbnail
User 254602 avatar

By nwbrown
via standard-out.com
Submitted: Jan 07 2013 / 19:55

What happens when you run a code coverage tool against your test suite and you see some trivial methods, such as getters and setters in java, are not being covered? The novice developer will probably add a simple test to make sure the getters and setters do get and set the value they are, well, getting and setting. The intermediate developer will claim those tests are pointless and just leave the gap, and maybe write a blog post about how stupid code coverage is. The advanced developer will simply delete those methods, they were not needed anyway.
  • 3
  • 0
  • 193
  • 44

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (3)



Voters Against This Link (0)



    Java Performance Optimization
    Written by: Pierre-Hugues Charbonneau
    Featured Refcardz: Top Refcardz:
    1. Design Patterns
    2. OO JS
    3. Cont. Delivery
    4. Java EE7
    5. HTML5 Mobile
    1. Node.js
    2. Debugging JavaScript
    3. OO JS
    4. JSON
    5. Ajax