NDepend.API Documentation
NbLinesOfCodeNotCovered Property (ICodeContainer)
NDepend.CodeModel Namespace > ICodeContainer Interface : NbLinesOfCodeNotCovered Property
Gets a numeric nullable value in the range [0,this.NbLinesOfCode] counting the number of lines of code of this code element, not covered by tests.
Syntax
Nullable<uint> NbLinesOfCodeNotCovered {get;}

Property Value

  • null if no code coverage data are imported through the NDepend project settings NDepend.Project.IProjectCoverage.
  • null if this code element is defined in a third-party assembly.
  • null if the PDB file of this assembly or code element parent's assembly, hasen't been found.
  • null if the code element is tagged with the attribute defined in NDepend.Project.IProjectCoverage.NDepend.Project.IProjectCoverage.UncoverableAttribute.
  • null if the code element does not contain any PDB sequence point.
  • 0 if the code element NbLinesOfCode is 0 and the code element contains at least one PDB sequence point (opening/closing braces have sequence points but don't count as lines of code).
  • Otherwise returns the number of lines of code not covered by tests for this code element. Notice that if a code element parent (assembly/namespace/type) contains some child code elements tagged with NDepend.Project.IProjectCoverage.NDepend.Project.IProjectCoverage.UncoverableAttribute the lines of code of these child code elements are not counted neither in NbLinesOfCodeCovered nor in NbLinesOfCodeNotCovered.
  • Requirements

    Target Platforms: Windows 11, 10, 8, 7and Linux, MacOS with net10.0, net9.0 or net8.0 installed

    See Also

    Reference

    ICodeContainer Interface
    ICodeContainer Members
    RelyOnCodeCoverageData Property
    PercentageCoverage Property
    NbLinesOfCodeCovered Property
    CoverageDataAvailable Property
    PercentageBranchCoverage Property
    IProjectCoverage Interface