< Summary

Line coverage
32%
Covered lines: 224
Uncovered lines: 464
Coverable lines: 688
Total lines: 2827
Line coverage: 32.5%
Branch coverage
25%
Covered branches: 80
Total branches: 318
Branch coverage: 25.1%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
File 1: .cctor()100%11100%
File 1: .ctor(...)100%11100%
File 1: .ctor()100%11100%
File 1: .ctor(...)0%440%
File 1: SetDefaultFallbacks()100%11100%
File 1: Convert(...)100%110%
File 1: Convert(...)100%110%
File 1: RegisterProvider(...)100%110%
File 1: GetEncoding(...)27.77%363623.8%
File 1: GetEncoding(...)0%220%
File 1: GetEncoding(...)50%22100%
File 1: GetEncoding(...)0%220%
File 1: FilterDisallowedEncodings(...)33.33%6666.66%
File 1: GetEncodings()0%220%
File 1: GetPreamble()100%110%
File 1: GetDataItem()0%440%
File 1: Clone()100%110%
File 1: GetByteCount(...)100%110%
File 1: GetByteCount(...)0%220%
File 1: GetByteCount(...)0%220%
File 1: GetByteCount(...)100%110%
File 1: GetByteCount(...)100%110%
File 1: GetBytes(...)100%110%
File 1: GetBytes(...)100%110%
File 1: GetBytes(...)100%110%
File 1: GetBytes(...)0%440%
File 1: GetBytes(...)0%220%
File 1: GetBytes(...)0%220%
File 1: GetBytes(...)100%110%
File 1: TryGetBytes(...)0%220%
File 1: GetCharCount(...)100%110%
File 1: GetCharCount(...)100%110%
File 1: GetCharCount(...)100%110%
File 1: GetChars(...)100%110%
File 1: GetChars(...)100%110%
File 1: GetChars(...)0%220%
File 1: GetChars(...)100%110%
File 1: TryGetChars(...)0%220%
File 1: GetString(...)100%110%
File 1: GetString(...)100%11100%
File 1: IsAlwaysNormalized()100%110%
File 1: IsAlwaysNormalized(...)100%110%
File 1: GetDecoder()100%110%
File 1: GetEncoder()100%110%
File 1: GetString(...)100%110%
File 1: GetString(...)100%110%
File 1: Equals(...)0%660%
File 1: GetHashCode()100%110%
File 1: CreateTranscodingStream(...)100%110%
File 1: ThrowBytesOverflow()100%110%
File 1: ThrowBytesOverflow(...)0%880%
File 1: ThrowConversionOverflow()100%110%
File 1: ThrowCharsOverflow()100%110%
File 1: ThrowCharsOverflow(...)0%880%
File 1: .ctor(...)100%110%
File 1: GetByteCount(...)100%110%
File 1: GetByteCount(...)100%110%
File 1: GetBytes(...)100%110%
File 1: GetBytes(...)100%110%
File 1: .ctor(...)100%110%
File 1: GetCharCount(...)100%110%
File 1: GetCharCount(...)100%110%
File 1: GetCharCount(...)100%110%
File 1: GetChars(...)100%110%
File 1: GetChars(...)100%110%
File 1: GetChars(...)100%110%
File 1: .ctor(...)50%22100%
File 1: AddChar(...)75%4462.5%
File 1: AddChar(...)100%11100%
File 1: AdjustBytes(...)100%110%
File 1: GetNextByte()50%2275%
File 1: Fallback(...)100%11100%
File 1: Fallback(...)75%4460%
File 1: .ctor(...)75%8884.21%
File 1: AddByte(...)50%4475%
File 1: AddByte(...)100%11100%
File 1: AddByte(...)100%11100%
File 1: AddByte(...)50%22100%
File 1: MovePrevious(...)0%10100%
File 1: GetNextChar()50%44100%
File 2: DecodeFirstRune(...)100%110%
File 2: EncodeRune(...)100%110%
File 2: TryGetByteCount(...)100%110%
File 2: GetByteCount(...)0%880%
File 2: GetByteCountFast(...)100%110%
File 2: GetByteCountWithFallback(...)0%220%
File 2: GetByteCountWithFallback(...)0%880%
File 2: GetByteCountWithFallback(...)0%14140%
File 2: GetBytes(...)50%8892.3%
File 2: GetBytesFast(...)100%110%
File 2: GetBytesWithFallback(...)0%440%
File 2: GetBytesWithFallback(...)0%880%
File 2: GetBytesWithFallback(...)0%26260%
File 2: GetCharCount(...)70%101092.85%
File 2: GetCharCountFast(...)100%110%
File 2: GetCharCountWithFallback(...)0%220%
File 2: GetCharCountWithFallback(...)50%101080%
File 2: GetCharCountWithFallback(...)71.42%141493.1%
File 2: GetChars(...)75%88100%
File 2: GetCharsFast(...)100%110%
File 2: GetCharsWithFallback(...)0%440%
File 2: GetCharsWithFallback(...)80%1010100%
File 2: GetCharsWithFallback(...)35%202047.36%

File(s)

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Private.CoreLib/src/System/Text/Encoding.cs

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

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Private.CoreLib/src/System/Text/Encoding.Internal.cs

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

Methods/Properties

.cctor()
Default()
.ctor(System.Int32)
.ctor()
.ctor(System.Int32,System.Text.EncoderFallback,System.Text.DecoderFallback)
SetDefaultFallbacks()
Convert(System.Text.Encoding,System.Text.Encoding,System.Byte[])
Convert(System.Text.Encoding,System.Text.Encoding,System.Byte[],System.Int32,System.Int32)
RegisterProvider(System.Text.EncodingProvider)
GetEncoding(System.Int32)
GetEncoding(System.Int32,System.Text.EncoderFallback,System.Text.DecoderFallback)
GetEncoding(System.String)
GetEncoding(System.String,System.Text.EncoderFallback,System.Text.DecoderFallback)
FilterDisallowedEncodings(System.Text.Encoding)
GetEncodings()
GetPreamble()
Preamble()
GetDataItem()
BodyName()
EncodingName()
HeaderName()
WebName()
WindowsCodePage()
IsBrowserDisplay()
IsBrowserSave()
IsMailNewsDisplay()
IsMailNewsSave()
IsSingleByte()
EncoderFallback()
EncoderFallback(System.Text.EncoderFallback)
DecoderFallback()
DecoderFallback(System.Text.DecoderFallback)
Clone()
IsReadOnly()
IsReadOnly(System.Boolean)
ASCII()
Latin1()
GetByteCount(System.Char[])
GetByteCount(System.String)
GetByteCount(System.String,System.Int32,System.Int32)
GetByteCount(System.Char*,System.Int32)
GetByteCount(System.ReadOnlySpan`1<System.Char>)
GetBytes(System.Char[])
GetBytes(System.Char[],System.Int32,System.Int32)
GetBytes(System.String)
GetBytes(System.String,System.Int32,System.Int32)
GetBytes(System.String,System.Int32,System.Int32,System.Byte[],System.Int32)
GetBytes(System.Char*,System.Int32,System.Byte*,System.Int32)
GetBytes(System.ReadOnlySpan`1<System.Char>,System.Span`1<System.Byte>)
TryGetBytes(System.ReadOnlySpan`1<System.Char>,System.Span`1<System.Byte>,System.Int32&)
GetCharCount(System.Byte[])
GetCharCount(System.Byte*,System.Int32)
GetCharCount(System.ReadOnlySpan`1<System.Byte>)
GetChars(System.Byte[])
GetChars(System.Byte[],System.Int32,System.Int32)
GetChars(System.Byte*,System.Int32,System.Char*,System.Int32)
GetChars(System.ReadOnlySpan`1<System.Byte>,System.Span`1<System.Char>)
TryGetChars(System.ReadOnlySpan`1<System.Byte>,System.Span`1<System.Char>,System.Int32&)
GetString(System.Byte*,System.Int32)
GetString(System.ReadOnlySpan`1<System.Byte>)
CodePage()
IsUTF8CodePage()
IsAlwaysNormalized()
IsAlwaysNormalized(System.Text.NormalizationForm)
GetDecoder()
GetEncoder()
GetString(System.Byte[])
GetString(System.Byte[],System.Int32,System.Int32)
Unicode()
BigEndianUnicode()
UTF7()
UTF8()
UTF32()
BigEndianUTF32()
Equals(System.Object)
GetHashCode()
CreateTranscodingStream(System.IO.Stream,System.Text.Encoding,System.Text.Encoding,System.Boolean)
ThrowBytesOverflow()
ThrowBytesOverflow(System.Text.EncoderNLS,System.Boolean)
ThrowConversionOverflow()
ThrowCharsOverflow()
ThrowCharsOverflow(System.Text.DecoderNLS,System.Boolean)
.ctor(System.Text.Encoding)
GetByteCount(System.Char[],System.Int32,System.Int32,System.Boolean)
GetByteCount(System.Char*,System.Int32,System.Boolean)
GetBytes(System.Char[],System.Int32,System.Int32,System.Byte[],System.Int32,System.Boolean)
GetBytes(System.Char*,System.Int32,System.Byte*,System.Int32,System.Boolean)
.ctor(System.Text.Encoding)
GetCharCount(System.Byte[],System.Int32,System.Int32)
GetCharCount(System.Byte[],System.Int32,System.Int32,System.Boolean)
GetCharCount(System.Byte*,System.Int32,System.Boolean)
GetChars(System.Byte[],System.Int32,System.Int32,System.Char[],System.Int32)
GetChars(System.Byte[],System.Int32,System.Int32,System.Char[],System.Int32,System.Boolean)
GetChars(System.Byte*,System.Int32,System.Char*,System.Int32,System.Boolean)
.ctor(System.Text.Encoding,System.Text.DecoderNLS,System.Char*,System.Int32,System.Byte*,System.Int32)
AddChar(System.Char,System.Int32)
AddChar(System.Char)
AdjustBytes(System.Int32)
MoreData()
GetNextByte()
BytesUsed()
Fallback(System.Byte)
Fallback(System.Byte[])
Count()
.ctor(System.Text.Encoding,System.Text.EncoderNLS,System.Byte*,System.Int32,System.Char*,System.Int32)
AddByte(System.Byte,System.Int32)
AddByte(System.Byte)
AddByte(System.Byte,System.Byte)
AddByte(System.Byte,System.Byte,System.Int32)
MovePrevious(System.Boolean)
MoreData()
GetNextChar()
CharsUsed()
Count()
DecodeFirstRune(System.ReadOnlySpan`1<System.Byte>,System.Text.Rune&,System.Int32&)
EncodeRune(System.Text.Rune,System.Span`1<System.Byte>,System.Int32&)
TryGetByteCount(System.Text.Rune,System.Int32&)
GetByteCount(System.Char*,System.Int32,System.Text.EncoderNLS)
GetByteCountFast(System.Char*,System.Int32,System.Text.EncoderFallback,System.Int32&)
GetByteCountWithFallback(System.Char*,System.Int32,System.Int32)
GetByteCountWithFallback(System.Char*,System.Int32,System.Int32,System.Text.EncoderNLS)
GetByteCountWithFallback(System.ReadOnlySpan`1<System.Char>,System.Int32,System.Text.EncoderNLS)
GetBytes(System.Char*,System.Int32,System.Byte*,System.Int32,System.Text.EncoderNLS)
GetBytesFast(System.Char*,System.Int32,System.Byte*,System.Int32,System.Int32&)
GetBytesWithFallback(System.Char*,System.Int32,System.Byte*,System.Int32,System.Int32,System.Int32,System.Boolean)
GetBytesWithFallback(System.Char*,System.Int32,System.Byte*,System.Int32,System.Int32,System.Int32,System.Text.EncoderNLS)
GetBytesWithFallback(System.ReadOnlySpan`1<System.Char>,System.Int32,System.Span`1<System.Byte>,System.Int32,System.Text.EncoderNLS,System.Boolean)
GetCharCount(System.Byte*,System.Int32,System.Text.DecoderNLS)
GetCharCountFast(System.Byte*,System.Int32,System.Text.DecoderFallback,System.Int32&)
GetCharCountWithFallback(System.Byte*,System.Int32,System.Int32)
GetCharCountWithFallback(System.Byte*,System.Int32,System.Int32,System.Text.DecoderNLS)
GetCharCountWithFallback(System.ReadOnlySpan`1<System.Byte>,System.Int32,System.Text.DecoderNLS)
GetChars(System.Byte*,System.Int32,System.Char*,System.Int32,System.Text.DecoderNLS)
GetCharsFast(System.Byte*,System.Int32,System.Char*,System.Int32,System.Int32&)
GetCharsWithFallback(System.Byte*,System.Int32,System.Char*,System.Int32,System.Int32,System.Int32,System.Boolean)
GetCharsWithFallback(System.Byte*,System.Int32,System.Char*,System.Int32,System.Int32,System.Int32,System.Text.DecoderNLS)
GetCharsWithFallback(System.ReadOnlySpan`1<System.Byte>,System.Int32,System.Span`1<System.Char>,System.Int32,System.Text.DecoderNLS,System.Boolean)