Class FullBranchCoveredAttribute
- Namespace
- NDepend.Attributes
- Assembly
- NDepend.API.dll
This attribute can be used to declare that a method is 100% branch covered by tests (branch coverage is only available with NCover and OpenCover).
[AttributeUsage(AttributeTargets.Constructor|AttributeTargets.Method)]
public sealed class FullBranchCoveredAttribute : Attribute
- Inheritance
-
FullBranchCoveredAttribute
- Inherited Members
- Extension Methods
Remarks
The branch coverage code metric is only available with NCover.
The code metric IMethod.PercentageBranchCoverage can be used to determine whether a method is 100% branch covered by tests or not.
A code rule is provided by default to continuously make sure that all method tagged with this attribute are indeed 100% branch covered by tests.
A code rule is provided by default to continuously make sure that all method 100% branch covered by tests are tagged with this attribute.
Constructor (1)
FullBranchCoveredAttribute()
Create a new instance of the FullBranchCoveredAttribute class.
public FullBranchCoveredAttribute()