< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Channels.BinaryVersion
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Channels/BinaryVersion.cs
Line coverage
91%
Covered lines: 11
Uncovered lines: 1
Coverable lines: 12
Total lines: 26
Line coverage: 91.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
.cctor()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Channels/BinaryVersion.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.Xml;
 5
 6namespace CoreWCF.Channels
 7{
 8    internal class BinaryVersion
 9    {
 910        public static readonly BinaryVersion Version1 = new BinaryVersion(FramingEncodingString.Binary, FramingEncodingS
 911        public static readonly BinaryVersion GZipVersion1 = new BinaryVersion(FramingEncodingString.ExtendedBinaryGZip, 
 912        public static readonly BinaryVersion DeflateVersion1 = new BinaryVersion(FramingEncodingString.ExtendedBinaryDef
 13
 2714        private BinaryVersion(string contentType, string sessionContentType, IXmlDictionary dictionary)
 15        {
 2716            ContentType = contentType;
 2717            SessionContentType = sessionContentType;
 2718            Dictionary = dictionary;
 2719        }
 20
 021        public static BinaryVersion CurrentVersion { get { return Version1; } }
 106522        public string ContentType { get; }
 40223        public string SessionContentType { get; }
 40024        public IXmlDictionary Dictionary { get; }
 25    }
 26}