< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 20
Line coverage: 0%
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%110%

File(s)

https://raw.githubusercontent.com/dotnet/runtime/811a7eabb75c42db53440e8ba3f60c07511cfd1f/src/libraries/System.Net.Primitives/src/System/Net/HttpVersion.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 System.Net
 5{
 6    public static class HttpVersion
 7    {
 8        /// <summary>Defines a <see cref="Version"/> instance that indicates an unknown version of HTTP.</summary>
 09        public static readonly Version Unknown = new Version(0, 0);
 10        /// <summary>Defines a <see cref="Version"/> instance for HTTP 1.0.</summary>
 011        public static readonly Version Version10 = new Version(1, 0);
 12        /// <summary>Defines a <see cref="Version"/> instance for HTTP 1.1.</summary>
 013        public static readonly Version Version11 = new Version(1, 1);
 14        /// <summary>Defines a <see cref="Version"/> instance for HTTP 2.0.</summary>
 015        public static readonly Version Version20 = new Version(2, 0);
 16        /// <summary>Defines a <see cref="Version"/> instance for HTTP 3.0.</summary>
 017        public static readonly Version Version30 = new Version(3, 0);
 18    }
 19}
 20

Methods/Properties

.cctor()