< 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: 11
Uncovered lines: 0
Coverable lines: 11
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%

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
 1714    public GovernanceMetadataClassificationContext(
 1715        string key,
 1716        string value,
 1717        IReadOnlyDictionary<string, string> metadata)
 18    {
 1719        ArgumentException.ThrowIfNullOrWhiteSpace(key);
 1420        ArgumentNullException.ThrowIfNull(value);
 1321        ArgumentNullException.ThrowIfNull(metadata);
 22
 1223        Key = key;
 1224        Value = value;
 1225        Metadata = metadata;
 1226    }
 27
 28    /// <summary>
 29    /// Gets the normalized metadata key being classified.
 30    /// </summary>
 31    public string Key { get; }
 32
 33    /// <summary>
 34    /// Gets the normalized metadata value being classified.
 35    /// </summary>
 36    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>
 44    public IReadOnlyDictionary<string, string> Metadata { get; }
 45}