< Summary

Line coverage
22%
Covered lines: 84
Uncovered lines: 297
Coverable lines: 381
Total lines: 785
Line coverage: 22%
Branch coverage
10%
Covered branches: 12
Total branches: 110
Branch coverage: 10.9%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.cctor()100%110%
.ctor(...)100%11100%
.ctor(...)0%220%
.ctor(...)0%220%
.ctor(...)100%11100%
.ctor(...)100%110%
.ctor(...)0%220%
.ctor(...)0%440%
ReadUInt16NumbersFromBytes(...)0%660%
IsValid(...)100%11100%
IsValidUtf8(...)100%11100%
TryParse(...)50%2262.5%
TryParse(...)100%11100%
TryParse(...)100%11100%
System.IUtf8SpanParsable<System.Net.IPAddress>.TryParse(...)100%110%
System.IParsable<System.Net.IPAddress>.TryParse(...)100%110%
System.ISpanParsable<System.Net.IPAddress>.TryParse(...)100%110%
Parse(...)100%110%
Parse(...)100%110%
Parse(...)100%110%
System.IUtf8SpanParsable<System.Net.IPAddress>.Parse(...)100%110%
System.ISpanParsable<System.Net.IPAddress>.Parse(...)100%110%
System.IParsable<System.Net.IPAddress>.Parse(...)100%110%
TryWriteBytes(...)0%660%
WriteIPv6Bytes(...)0%880%
WriteIPv4Bytes(...)100%110%
GetAddressBytes()0%440%
ToString()75%44100%
System.IFormattable.ToString(...)100%110%
TryFormat(...)100%110%
TryFormat(...)100%110%
System.ISpanFormattable.TryFormat(...)100%110%
System.IUtf8SpanFormattable.TryFormat(...)100%110%
TryFormatCore(...)0%10100%
HostToNetworkOrder(...)0%220%
HostToNetworkOrder(...)50%22100%
HostToNetworkOrder(...)0%220%
NetworkToHostOrder(...)100%110%
NetworkToHostOrder(...)100%11100%
NetworkToHostOrder(...)100%110%
IsLoopback(...)0%440%
Equals(...)50%22100%
Equals(...)66.66%6685.71%
GetHashCode()0%440%
MapToIPv6()0%220%
MapToIPv4()0%220%
ThrowAddressNullException()100%110%
ThrowSocketOperationNotSupported()100%110%
ThrowSocketOperationNotSupportedReadOnly()100%110%
.ctor(...)100%110%
.ctor(...)100%110%

File(s)

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Primitives/src/System/Net/IPAddress.cs

Error during reading file 'https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Primitives/src/System/Net/IPAddress.cs': Response status code does not indicate success: 404 (Not Found).

Methods/Properties

.cctor()
IsIPv4()
IsIPv6()
PrivateAddress()
PrivateAddress(System.UInt32)
PrivateIPv4Address()
PrivateScopeId()
PrivateScopeId(System.UInt32)
.ctor(System.Int64)
.ctor(System.Byte[],System.Int64)
.ctor(System.ReadOnlySpan`1<System.Byte>,System.Int64)
.ctor(System.ReadOnlySpan`1<System.UInt16>,System.UInt32)
.ctor(System.UInt16[],System.UInt32)
.ctor(System.Byte[])
.ctor(System.ReadOnlySpan`1<System.Byte>)
ReadUInt16NumbersFromBytes(System.ReadOnlySpan`1<System.Byte>)
IsValid(System.ReadOnlySpan`1<System.Char>)
IsValidUtf8(System.ReadOnlySpan`1<System.Byte>)
TryParse(System.String,System.Net.IPAddress&)
TryParse(System.ReadOnlySpan`1<System.Byte>,System.Net.IPAddress&)
TryParse(System.ReadOnlySpan`1<System.Char>,System.Net.IPAddress&)
System.IUtf8SpanParsable<System.Net.IPAddress>.TryParse(System.ReadOnlySpan`1<System.Byte>,System.IFormatProvider,System.Net.IPAddress&)
System.IParsable<System.Net.IPAddress>.TryParse(System.String,System.IFormatProvider,System.Net.IPAddress&)
System.ISpanParsable<System.Net.IPAddress>.TryParse(System.ReadOnlySpan`1<System.Char>,System.IFormatProvider,System.Net.IPAddress&)
Parse(System.String)
Parse(System.ReadOnlySpan`1<System.Byte>)
Parse(System.ReadOnlySpan`1<System.Char>)
System.IUtf8SpanParsable<System.Net.IPAddress>.Parse(System.ReadOnlySpan`1<System.Byte>,System.IFormatProvider)
System.ISpanParsable<System.Net.IPAddress>.Parse(System.ReadOnlySpan`1<System.Char>,System.IFormatProvider)
System.IParsable<System.Net.IPAddress>.Parse(System.String,System.IFormatProvider)
TryWriteBytes(System.Span`1<System.Byte>,System.Int32&)
WriteIPv6Bytes(System.Span`1<System.Byte>)
WriteIPv4Bytes(System.Span`1<System.Byte>)
GetAddressBytes()
AddressFamily()
ScopeId()
ScopeId(System.Int64)
ToString()
System.IFormattable.ToString(System.String,System.IFormatProvider)
TryFormat(System.Span`1<System.Char>,System.Int32&)
TryFormat(System.Span`1<System.Byte>,System.Int32&)
System.ISpanFormattable.TryFormat(System.Span`1<System.Char>,System.Int32&,System.ReadOnlySpan`1<System.Char>,System.IFormatProvider)
System.IUtf8SpanFormattable.TryFormat(System.Span`1<System.Byte>,System.Int32&,System.ReadOnlySpan`1<System.Char>,System.IFormatProvider)
TryFormatCore(System.Span`1<TChar>,System.Int32&)
HostToNetworkOrder(System.Int64)
HostToNetworkOrder(System.Int32)
HostToNetworkOrder(System.Int16)
NetworkToHostOrder(System.Int64)
NetworkToHostOrder(System.Int32)
NetworkToHostOrder(System.Int16)
IsLoopback(System.Net.IPAddress)
IsIPv6Multicast()
IsIPv6LinkLocal()
IsIPv6SiteLocal()
IsIPv6Teredo()
IsIPv6UniqueLocal()
IsIPv4MappedToIPv6()
Address()
Address(System.Int64)
Equals(System.Object)
Equals(System.Net.IPAddress)
GetHashCode()
MapToIPv6()
MapToIPv4()
ThrowAddressNullException()
ThrowSocketOperationNotSupported()
ThrowSocketOperationNotSupportedReadOnly()
.ctor(System.ReadOnlySpan`1<System.Byte>)
.ctor(System.ReadOnlySpan`1<System.Byte>,System.Int64)