What's means clover's highlights?

What is means emphasis 84th row red and green at the same time?

1 answer

0 vote

Clover cannot instrument decision branches in case when variable assignment is used (this is due to fact that such expression is hard to rewrite without causing a compile error - see CLOV-408). That's why it shows red marker with "?" on page margin - as we don't know whether decision branch was evaluated to both true and false. On the other hand, the whole while loop was executed, so statement coverage is green - that's why we see green marker in the same line too.

See also:

Cheers
Marek

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Hipchat

Moving from Hipchat to Stride? Here’s what you’ll love

Heya, Hipchat friends! We’re so happy you’re checking out   Stride. Whether you know it or not, you have been instrumental in making Stride come to life. Every feature, design, and functionality...

59 views 2 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you