< Summary

Information
Class: AsiBackbone.Core.Metadata.GovernanceMetadataClassificationContext
Assembly: AsiBackbone.Core
File(s): /home/runner/work/AsiBackbone/AsiBackbone/src/AsiBackbone.Core/Metadata/GovernanceMetadataClassificationContext.cs
Line coverage
100%
Covered lines: 14
Uncovered lines: 0
Coverable lines: 14
Total lines: 45
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
.ctor(...)100%11100%
get_Key()100%11100%
get_Value()100%11100%
get_Metadata()100%11100%

File(s)

/home/runner/work/AsiBackbone/AsiBackbone/src/AsiBackbone.Core/Metadata/GovernanceMetadataClassificationContext.cs

#LineLine coverage
 1namespace AsiBackbone.Core.Metadata;
 2
 3/// <summary>
 4/// Provides normalized governance metadata to a provider-neutral metadata classifier.
 5/// </summary>
 6public sealed class GovernanceMetadataClassificationContext
 7{
 8    /// <summary>
 9    /// Initializes a new instance of the <see cref="GovernanceMetadataClassificationContext" /> class.
 10    /// </summary>
 11    /// <param name="key">The normalized metadata key being classified.</param>
 12    /// <param name="value">The normalized metadata value being classified.</param>
 13    /// <param name="metadata">The complete normalized metadata collection available for contextual classification.</par
 2814    public GovernanceMetadataClassificationContext(
 2815        string key,
 2816        string value,
 2817        IReadOnlyDictionary<string, string> metadata)
 18    {
 2819        ArgumentException.ThrowIfNullOrWhiteSpace(key);
 2220        ArgumentNullException.ThrowIfNull(value);
 2021        ArgumentNullException.ThrowIfNull(metadata);
 22
 1823        Key = key;
 1824        Value = value;
 1825        Metadata = metadata;
 1826    }
 27
 28    /// <summary>
 29    /// Gets the normalized metadata key being classified.
 30    /// </summary>
 431    public string Key { get; }
 32
 33    /// <summary>
 34    /// Gets the normalized metadata value being classified.
 35    /// </summary>
 636    public string Value { get; }
 37
 38    /// <summary>
 39    /// Gets the complete normalized metadata collection available for contextual classification.
 40    /// </summary>
 41    /// <remarks>
 42    /// Classifiers must treat this collection as read-only and must not place raw sensitive values into returned reason
 43    /// </remarks>
 244    public IReadOnlyDictionary<string, string> Metadata { get; }
 45}