Skip to content

Method Class ​

Definition ​

Represents an OpenCover method and its associated sequence points, branch points, complexity metrics, and summary data.

  • Namespace: JASE.TestAnalysis.OpenCover
  • Assembly: JASE.TestAnalysis.dll

Constructors ​

NameDescription
Method()

Properties ​

NameDescription
BranchCoverageGets the branch coverage percentage reported for the method.
BranchPointsGets the branch points associated with the method.
CyclomaticComplexityGets the cyclomatic complexity for the method.
DisplayNameGets the simplified display name for the method.
IsConstructorGets a value indicating whether the method is a constructor.
IsGeneratedGets or sets a value indicating whether the method appears to be generated code.
IsGetterGets a value indicating whether the method is a property getter.
IsSetterGets a value indicating whether the method is a property setter.
IsStaticGets a value indicating whether the method is static.
MethodPointGets the method entry point information, if present.
NameGets the raw method name as reported by OpenCover.
NPathComplexityGets the NPath complexity for the method.
PathGets the source file path associated with the method, if known.
SequenceCoverageGets the sequence coverage percentage reported for the method.
SequencePointsGets the sequence points associated with the method.
SummaryGets the summary values declared for the method, if present.
TotalsGets the aggregate coverage totals computed for the method.

Methods ​

NameDescription
bool IsDangerouslyComplex(int cyclomatic = null, int nPath = null)Checks if method exceeds limits for Cyclomatic or NPath complexity