yantor3d,
@yantor3d@mograph.social avatar

A dutiful dev writes a test for both sides of the if/else for 100% coverage.

A lazy dev re-writes the if/else as a ternary operator for 100% coverage.

treyhunner,
@treyhunner@mastodon.social avatar

@yantor3d this is why I always enable branch coverage 😬

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • rosin
  • thenastyranch
  • mdbf
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Youngstown
  • cisconetworking
  • slotface
  • vwfavf
  • everett
  • Durango
  • kavyap
  • GTA5RPClips
  • megavids
  • khanakhh
  • osvaldo12
  • ngwrru68w68
  • normalnudes
  • anitta
  • ethstaker
  • cubers
  • modclub
  • tacticalgear
  • provamag3
  • Leos
  • tester
  • JUstTest
  • All magazines