< Summary

Information
Class: Spdx3.Model.Core.Classes.LifecycleScopedRelationship
Assembly: Spdx3
File(s): /home/runner/work/Spdx3/Spdx3/Spdx3/Model/Core/Classes/LifecycleScopedRelationship.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 30
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_Scope()100%11100%
.ctor()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/Spdx3/Spdx3/Spdx3/Model/Core/Classes/LifecycleScopedRelationship.cs

#LineLine coverage
 1using System.Diagnostics.CodeAnalysis;
 2using System.Text.Json.Serialization;
 3using Spdx3.Model.Core.Enums;
 4using Spdx3.Serialization;
 5using Spdx3.Utility;
 6
 7namespace Spdx3.Model.Core.Classes;
 8
 9/// <summary>
 10///     A relationship that occurs in the lifecycle.
 11///     See https://spdx.github.io/spdx-spec/v3.0.1/model/Core/Classes/LifecycleScopedRelationship/
 12/// </summary>
 13public class LifecycleScopedRelationship : Relationship
 14{
 15    [JsonPropertyName("scope")]
 16    [JsonConverter(typeof(SpdxModelConverterFactory))]
 517    public LifecycleScopeType? Scope { get; set; }
 18
 19    // protected internal no-parm constructor required for deserialization
 20    // ReSharper disable once UnusedMember.Global
 221    protected internal LifecycleScopedRelationship()
 22    {
 223    }
 24
 25    [SetsRequiredMembers]
 26    public LifecycleScopedRelationship(Catalog catalog, CreationInfo creationInfo, RelationshipType relationshipType,
 227        Element from, List<Element> to) : base(catalog, creationInfo, relationshipType, from, to)
 28    {
 229    }
 30}