< Summary

Information
Class: DotNetApiDiff.Models.ApiDifference
Assembly: DotNetApiDiff
File(s): /home/runner/work/dotnet-api-diff/dotnet-api-diff/src/DotNetApiDiff/Models/ApiDifference.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 48
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_ChangeType()100%11100%
get_ElementType()100%11100%
get_ElementName()100%11100%
get_Description()100%11100%
get_IsBreakingChange()100%11100%
get_Severity()100%11100%
get_OldSignature()100%11100%
get_NewSignature()100%11100%

File(s)

/home/runner/work/dotnet-api-diff/dotnet-api-diff/src/DotNetApiDiff/Models/ApiDifference.cs

#LineLine coverage
 1// Copyright DotNet API Diff Project Contributors - SPDX Identifier: MIT
 2namespace DotNetApiDiff.Models;
 3
 4/// <summary>
 5/// Represents a single API difference between two assemblies
 6/// </summary>
 7public class ApiDifference
 8{
 9    /// <summary>
 10    /// Type of change detected
 11    /// </summary>
 28512    public ChangeType ChangeType { get; set; }
 13
 14    /// <summary>
 15    /// Category of the API element that changed
 16    /// </summary>
 15517    public ApiElementType ElementType { get; set; }
 18
 19    /// <summary>
 20    /// Full name of the API element
 21    /// </summary>
 23622    public string ElementName { get; set; } = string.Empty;
 23
 24    /// <summary>
 25    /// Description of the change
 26    /// </summary>
 18727    public string Description { get; set; } = string.Empty;
 28
 29    /// <summary>
 30    /// Whether this change is considered breaking
 31    /// </summary>
 22032    public bool IsBreakingChange { get; set; }
 33
 34    /// <summary>
 35    /// Severity level of the change
 36    /// </summary>
 10037    public SeverityLevel Severity { get; set; }
 38
 39    /// <summary>
 40    /// Old signature or value (if applicable)
 41    /// </summary>
 8542    public string? OldSignature { get; set; }
 43
 44    /// <summary>
 45    /// New signature or value (if applicable)
 46    /// </summary>
 8147    public string? NewSignature { get; set; }
 48}