| Class: | System.Net.WebSockets.WebSocket |
|---|---|
| Assembly: | System.Net.WebSockets |
| File(s): | https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.WebSockets/src/System/Net/WebSockets/WebSocket.cs |
| Covered lines: | 6 |
|---|---|
| Uncovered lines: | 93 |
| Coverable lines: | 99 |
| Total lines: | 214 |
| Line coverage: | 6% |
| Covered branches: | 2 |
|---|---|
| Total branches: | 44 |
| Branch coverage: | 4.5% |
Feature is only available for sponsors
Upgrade to PRO version| Method | Branch coverage | Cyclomatic complexity | NPath complexity | Sequence coverage |
|---|---|---|---|---|
| ReceiveAsync(...) | 0% | 2 | 2 | 0% |
| SendAsync(...) | 0% | 2 | 2 | 0% |
| SendAsync(...) | 100% | 1 | 1 | 0% |
| SendWithArrayPoolAsync(...) | 100% | 1 | 1 | 0% |
| ThrowOnInvalidState(...) | 0% | 8 | 8 | 0% |
| IsStateTerminal(...) | 0% | 2 | 2 | 0% |
| CreateClientBuffer(...) | 100% | 1 | 1 | 0% |
| CreateServerBuffer(...) | 100% | 1 | 1 | 0% |
| CreateFromStream(...) | 0% | 12 | 12 | 0% |
| CreateFromStream(...) | 33.33% | 6 | 6 | 85.71% |
| IsApplicationTargeting45() | 100% | 1 | 1 | 0% |
| RegisterPrefixes() | 100% | 1 | 1 | 0% |
| CreateClientWebSocket(...) | 0% | 12 | 12 | 0% |
Error during reading file 'https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.WebSockets/src/System/Net/WebSockets/WebSocket.cs': Response status code does not indicate success: 404 (Not Found).