< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Security.NonceToken
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/NonceToken.cs
Line coverage
66%
Covered lines: 4
Uncovered lines: 2
Coverable lines: 6
Total lines: 26
Line coverage: 66.6%
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%11100%
.ctor(...)100%11100%
.ctor(...)100%110%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Security/NonceToken.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 CoreWCF.IdentityModel;
 5using CoreWCF.Security.Tokens;
 6
 7namespace CoreWCF.Security
 8{
 9    internal sealed class NonceToken : BinarySecretSecurityToken
 10    {
 11        public NonceToken(byte[] key)
 1012            : this(SecurityUniqueId.Create().Value, key)
 13        {
 1014        }
 15
 16        public NonceToken(string id, byte[] key)
 2017            : base(id, key, false)
 18        {
 2019        }
 20
 21        public NonceToken(int keySizeInBits)
 022            : base(SecurityUniqueId.Create().Value, keySizeInBits, false)
 23        {
 024        }
 25    }
 26}