< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.IdentityModel.CookieTransform
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/IdentityModel/CookieTransform.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
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 Cyclomatic complexity NPath complexity Sequence coverage
.ctor()100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/IdentityModel/CookieTransform.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
 4namespace CoreWCF.IdentityModel
 5{
 6    /// <summary>
 7    /// Applies a reversible data transform to cookie data.
 8    /// </summary>
 9    public abstract class CookieTransform
 10    {
 11        /// <summary>
 12        /// Initializes a new instance of the <see cref="CookieTransform"/> class.
 13        /// </summary>
 1614        protected CookieTransform() { }
 15
 16        /// <summary>
 17        /// Reverses the transform.
 18        /// </summary>
 19        /// <param name="encoded">The encoded form of the cookie.</param>
 20        /// <returns>The decoded byte array.</returns>
 21        public abstract byte[] Decode( byte[] encoded );
 22
 23        /// <summary>
 24        /// Applies the transform.
 25        /// </summary>
 26        /// <param name="value">The byte array to be encoded.</param>
 27        /// <returns>The encoded cookie.</returns>
 28        public abstract byte[] Encode( byte[] value );
 29    }
 30}

Methods/Properties

.ctor()