< Summary

Information
Class: Spdx3.Model.ExpandedLicensing.Classes.ListedLicense
Assembly: Spdx3
File(s): /home/runner/work/Spdx3/Spdx3/Spdx3/Model/ExpandedLicensing/Classes/ListedLicense.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 37
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_DeprecatedVersion()100%11100%
get_ListVersionAdded()100%11100%
.ctor()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/Spdx3/Spdx3/Spdx3/Model/ExpandedLicensing/Classes/ListedLicense.cs

#LineLine coverage
 1using System.Diagnostics.CodeAnalysis;
 2using System.Text.Json.Serialization;
 3using Spdx3.Model.Core.Classes;
 4using Spdx3.Serialization;
 5using Spdx3.Utility;
 6
 7namespace Spdx3.Model.ExpandedLicensing.Classes;
 8
 9/// <summary>
 10/// A license that is listed on the SPDX License List.
 11/// See https://spdx.github.io/spdx-spec/v3.0.1/model/ExpandedLicensing/Classes/ListedLicense/
 12///
 13/// The SPDX License List can be found here: https://spdx.org/licenses/
 14/// </summary>
 15public class ListedLicense : License
 16{
 17    [JsonPropertyName("expandedlicensing_deprecatedVersion")]
 18    [JsonConverter(typeof(SpdxModelConverterFactory))]
 3519    public string? DeprecatedVersion { get; set; }
 20
 21    [JsonPropertyName("expandedlicensing_listVersionAdded")]
 22    [JsonConverter(typeof(SpdxModelConverterFactory))]
 323    public string? ListVersionAdded { get; set; }
 24
 25    /// <summary>
 26    /// No-arg constructor required for serialization/deserialization
 27    /// </summary>
 69428    protected internal ListedLicense()
 29    {
 69430    }
 31
 32    [SetsRequiredMembers]
 633    public ListedLicense(Catalog catalog, CreationInfo creationInfo, string licenseText) : base(catalog, creationInfo,
 634        licenseText)
 35    {
 636    }
 37}