You need to sign in to do that
Don't have an account?
fifedog15
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
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.