< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.IdentityModel.Tokens.EncryptedKeyHashIdentifierClause
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/IdentityModel/Tokens/EncryptedKeyHashIdentifierClause.cs
Line coverage
25%
Covered lines: 2
Uncovered lines: 6
Coverable lines: 8
Total lines: 36
Line coverage: 25%
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 Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)100%110%
.ctor(...)100%110%
.ctor(...)100%11100%
GetEncryptedKeyHash()100%110%
ToString()100%110%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/IdentityModel/Tokens/EncryptedKeyHashIdentifierClause.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4using System;
 5using System.Globalization;
 6
 7namespace CoreWCF.IdentityModel.Tokens
 8{
 9    internal sealed class EncryptedKeyHashIdentifierClause : BinaryKeyIdentifierClause
 10    {
 11        public EncryptedKeyHashIdentifierClause(byte[] encryptedKeyHash)
 012            : this(encryptedKeyHash, true)
 13        {
 014        }
 15
 16        internal EncryptedKeyHashIdentifierClause(byte[] encryptedKeyHash, bool cloneBuffer)
 017            : this(encryptedKeyHash, cloneBuffer, null, 0)
 18        {
 019        }
 20
 21        internal EncryptedKeyHashIdentifierClause(byte[] encryptedKeyHash, bool cloneBuffer, byte[] derivationNonce, int
 422            : base(null, encryptedKeyHash, cloneBuffer, derivationNonce, derivationLength)
 23        {
 424        }
 25
 26        public byte[] GetEncryptedKeyHash()
 27        {
 028            return GetBuffer();
 29        }
 30
 31        public override string ToString()
 32        {
 033            return string.Format(CultureInfo.InvariantCulture, "EncryptedKeyHashIdentifierClause(Hash = {0})", Convert.T
 34        }
 35    }
 36}