< Summary

Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 20
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
.cctor()100%11100%

File(s)

https://raw.githubusercontent.com/dotnet/runtime/811a7eabb75c42db53440e8ba3f60c07511cfd1f/src/libraries/Common/src/System/Net/WebSockets/WebSocketDefaults.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.Threading;
 5
 6namespace System.Net.WebSockets
 7{
 8    /// <summary>
 9    /// Central repository for default values used in WebSocket settings.  Not all settings are relevant
 10    /// to or configurable by all WebSocket implementations.
 11    /// </summary>
 12    internal static partial class WebSocketDefaults
 13    {
 114        public static readonly TimeSpan DefaultKeepAliveInterval = TimeSpan.Zero;
 115        public static readonly TimeSpan DefaultClientKeepAliveInterval = TimeSpan.FromSeconds(30);
 16
 117        public static readonly TimeSpan DefaultKeepAliveTimeout = Timeout.InfiniteTimeSpan;
 18    }
 19}
 20

Methods/Properties

.cctor()