 Note that code coverage metrics are a property of the tests for a piece of software, not of the software being tested.Achieving high branch coverage often involves writing "negative" test variations, that is, variations where the software is supposed to fail in some way, in addition to the usual "positive" test variations, which test intended usage.An example of a negative variation would be calling a function with illegal parameters.