function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
fifedog15fifedog15 

Confused compiler?... test coverage not running for "}" lines

So this is weird.  I have a simple trigger which updates one field on the parent object when a new task.type = email.

 

So in my test class I'm getting 75% of coverage however when viewing what didn't run it shows that two of the curly backets are what didn't run.  See screen shot: http://screencast.com/t/aMGqyOIDFt

 

If I change anything else in the lines or add a return it drops down to 71%.  I'm a confused newbie.

 

Fifedog

Damien_Damien_

It is probably looking for a catch or finally on the end of your 'try' block.  Try blocks aren't meant to be created without having a catch or finally on the end of them.