< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Channels.BinaryVersion
Assembly: CoreWCF.Http
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Http/src/CoreWCF/Channels/BinaryVersion.cs
Line coverage
83%
Covered lines: 10
Uncovered lines: 2
Coverable lines: 12
Total lines: 26
Line coverage: 83.3%
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.Http/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    {
 110        public static readonly BinaryVersion Version1 = new BinaryVersion(FramingEncodingString.Binary, FramingEncodingS
 111        public static readonly BinaryVersion GZipVersion1 = new BinaryVersion(FramingEncodingString.ExtendedBinaryGZip, 
 112        public static readonly BinaryVersion DeflateVersion1 = new BinaryVersion(FramingEncodingString.ExtendedBinaryDef
 13
 314        private BinaryVersion(string contentType, string sessionContentType, IXmlDictionary dictionary)
 15        {
 316            ContentType = contentType;
 317            SessionContentType = sessionContentType;
 318            Dictionary = dictionary;
 319        }
 20
 021        public static BinaryVersion CurrentVersion { get { return Version1; } }
 522        public string ContentType { get; }
 123        public string SessionContentType { get; }
 024        public IXmlDictionary Dictionary { get; }
 25    }
 26}