< Summary

Information
Class: System.Text.Json.JsonDocument
Assembly: System.Text.Json
File(s): File 1: https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.cs
File 2: https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.DbRow.cs
File 3: https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.MetadataDb.cs
File 4: https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.Parse.cs
File 5: https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.PropertyNameSet.cs
File 6: https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.StackRow.cs
File 7: https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.StackRowStack.cs
File 8: https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.TryGetProperty.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 1619
Coverable lines: 1619
Total lines: 3054
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 440
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
File 1: .ctor(...)0%660%
File 1: Dispose()0%12120%
File 1: WriteTo(...)100%110%
File 1: GetJsonTokenType(...)100%110%
File 1: ValueIsEscaped(...)0%440%
File 1: GetArrayLength(...)100%110%
File 1: GetPropertyCount(...)100%110%
File 1: GetArrayIndexElement(...)0%10100%
File 1: GetEndIndex(...)0%440%
File 1: GetRootRawValue()100%110%
File 1: GetRawValue(...)0%660%
File 1: GetPropertyRawValue(...)0%440%
File 1: GetString(...)0%440%
File 1: TextEquals(...)0%660%
File 1: TextEquals(...)0%16160%
File 1: GetNameOfPropertyValue(...)100%110%
File 1: GetPropertyNameRaw(...)100%110%
File 1: TryGetValue(...)0%220%
File 1: TryGetValue(...)0%440%
File 1: TryGetValue(...)0%440%
File 1: TryGetValue(...)0%440%
File 1: TryGetValue(...)0%440%
File 1: TryGetValue(...)0%440%
File 1: TryGetValue(...)0%440%
File 1: TryGetValue(...)0%440%
File 1: TryGetValue(...)0%440%
File 1: TryGetValue(...)0%440%
File 1: TryGetValue(...)0%440%
File 1: TryGetValue(...)0%440%
File 1: TryGetValue(...)100%110%
File 1: TryGetValue(...)100%110%
File 1: TryGetValue(...)100%110%
File 1: GetRawValueAsString(...)100%110%
File 1: GetPropertyRawValueAsString(...)100%110%
File 1: CloneElement(...)100%110%
File 1: WriteElementTo(...)0%12120%
File 1: WriteComplexElement(...)0%14140%
File 1: UnescapeString(...)0%440%
File 1: ClearAndReturn(...)0%220%
File 1: WritePropertyName(...)100%110%
File 1: WritePropertyName(...)100%110%
File 1: WriteString(...)100%110%
File 1: Parse(...)0%28280%
File 1: ValidateNoDuplicateProperties(...)0%440%
File 1: ValidateDuplicatePropertiesCore(...)0%22220%
File 1: CheckNotDisposed()0%220%
File 1: CheckExpectedType(...)0%220%
File 1: CheckSupportedOptions(...)0%440%
File 2: .ctor(...)0%220%
File 3: .ctor(...)100%110%
File 3: .ctor(...)100%110%
File 3: CreateRented(...)0%440%
File 3: CreateLocked(...)100%110%
File 3: Dispose()0%220%
File 3: CompleteAllocations()0%880%
File 3: Append(...)0%440%
File 3: Enlarge()0%440%
File 3: AssertValidIndex(...)0%440%
File 3: SetLength(...)100%110%
File 3: SetNumberOfRows(...)0%220%
File 3: SetHasComplexChildren(...)100%110%
File 3: FindIndexOfFirstUnsetSizeOrLength(...)0%220%
File 3: FindOpenElement(...)0%660%
File 3: Get(...)100%110%
File 3: GetJsonTokenType(...)100%110%
File 3: CopySegment(...)0%16160%
File 4: Parse(...)100%110%
File 4: Parse(...)0%220%
File 4: Parse(...)100%110%
File 4: ParseRented(...)100%110%
File 4: ParseValue(...)100%110%
File 4: ParseValue(...)100%110%
File 4: ParseValue(...)100%110%
File 4: ParseAsync(...)100%110%
File 4: ParseAsyncCore()100%110%
File 4: ParseAsyncCoreUnrented()100%110%
File 4: Parse(...)100%110%
File 4: ParseValue(...)100%110%
File 4: Parse(...)100%110%
File 4: TryParseValue(...)100%110%
File 4: ParseValue(...)100%110%
File 4: ParseValue(...)100%110%
File 4: TryParseValue(...)0%56560%
File 4: CreateForLiteral(...)0%10100%
File 4: Parse(...)0%220%
File 4: ParseUnrented(...)0%10100%
File 4: ReadToEnd(...)0%16160%
File 4: ReadToEndAsync()0%16160%
File 5: .ctor()100%110%
File 5: SetCapacity(...)0%440%
File 5: AddPropertyName(...)0%10100%
File 5: SwitchToHashSet(...)0%880%
File 5: Reset()0%220%
File 5: Dispose()100%110%
File 5: .cctor()100%110%
File 5: Equals(...)0%220%
File 5: GetHashCode(...)100%110%
File 6: .ctor(...)100%110%
File 7: .ctor(...)100%110%
File 7: Dispose()0%220%
File 7: Push(...)0%220%
File 7: Pop()100%110%
File 7: Enlarge()100%110%
File 8: TryGetNamedPropertyValue(...)0%10100%
File 8: TryGetNamedPropertyValue(...)0%220%
File 8: TryGetNamedPropertyValue(...)0%20200%

File(s)

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.cs

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

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.DbRow.cs

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

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.MetadataDb.cs

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

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.Parse.cs

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

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.PropertyNameSet.cs

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

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.StackRow.cs

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

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.StackRowStack.cs

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

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.TryGetProperty.cs

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

Methods/Properties

IsDisposable()
RootElement()
.ctor(System.ReadOnlyMemory`1<System.Byte>,System.Text.Json.JsonDocument/MetadataDb,System.Byte[],System.Text.Json.PooledByteBufferWriter,System.Boolean)
Dispose()
WriteTo(System.Text.Json.Utf8JsonWriter)
GetJsonTokenType(System.Int32)
ValueIsEscaped(System.Int32,System.Boolean)
GetArrayLength(System.Int32)
GetPropertyCount(System.Int32)
GetArrayIndexElement(System.Int32,System.Int32)
GetEndIndex(System.Int32,System.Boolean)
GetRootRawValue()
GetRawValue(System.Int32,System.Boolean)
GetPropertyRawValue(System.Int32)
GetString(System.Int32,System.Text.Json.JsonTokenType)
TextEquals(System.Int32,System.ReadOnlySpan`1<System.Char>,System.Boolean)
TextEquals(System.Int32,System.ReadOnlySpan`1<System.Byte>,System.Boolean,System.Boolean)
GetNameOfPropertyValue(System.Int32)
GetPropertyNameRaw(System.Int32)
TryGetValue(System.Int32,System.Byte[]&)
TryGetValue(System.Int32,System.SByte&)
TryGetValue(System.Int32,System.Byte&)
TryGetValue(System.Int32,System.Int16&)
TryGetValue(System.Int32,System.UInt16&)
TryGetValue(System.Int32,System.Int32&)
TryGetValue(System.Int32,System.UInt32&)
TryGetValue(System.Int32,System.Int64&)
TryGetValue(System.Int32,System.UInt64&)
TryGetValue(System.Int32,System.Double&)
TryGetValue(System.Int32,System.Single&)
TryGetValue(System.Int32,System.Decimal&)
TryGetValue(System.Int32,System.DateTime&)
TryGetValue(System.Int32,System.DateTimeOffset&)
TryGetValue(System.Int32,System.Guid&)
GetRawValueAsString(System.Int32)
GetPropertyRawValueAsString(System.Int32)
CloneElement(System.Int32)
WriteElementTo(System.Int32,System.Text.Json.Utf8JsonWriter)
WriteComplexElement(System.Int32,System.Text.Json.Utf8JsonWriter)
UnescapeString(System.Text.Json.JsonDocument/DbRow&,System.ArraySegment`1<System.Byte>&)
ClearAndReturn(System.ArraySegment`1<System.Byte>)
WritePropertyName(System.Int32,System.Text.Json.Utf8JsonWriter)
WritePropertyName(System.Text.Json.JsonDocument/DbRow&,System.Text.Json.Utf8JsonWriter)
WriteString(System.Text.Json.JsonDocument/DbRow&,System.Text.Json.Utf8JsonWriter)
Parse(System.ReadOnlySpan`1<System.Byte>,System.Text.Json.JsonReaderOptions,System.Text.Json.JsonDocument/MetadataDb&,System.Text.Json.JsonDocument/StackRowStack&)
ValidateNoDuplicateProperties(System.Text.Json.JsonDocument)
ValidateDuplicatePropertiesCore(System.Text.Json.JsonDocument)
CheckNotDisposed()
CheckExpectedType(System.Text.Json.JsonTokenType,System.Text.Json.JsonTokenType)
CheckSupportedOptions(System.Text.Json.JsonReaderOptions,System.String)
Location()
SizeOrLength()
IsUnknownSize()
HasComplexChildren()
NumberOfRows()
TokenType()
.ctor(System.Text.Json.JsonTokenType,System.Int32,System.Int32)
IsSimpleValue()
Length()
.ctor(System.Byte[],System.Boolean,System.Boolean)
.ctor(System.Byte[])
CreateRented(System.Int32,System.Boolean)
CreateLocked(System.Int32)
Dispose()
CompleteAllocations()
Append(System.Text.Json.JsonTokenType,System.Int32,System.Int32)
Enlarge()
AssertValidIndex(System.Int32)
SetLength(System.Int32,System.Int32)
SetNumberOfRows(System.Int32,System.Int32)
SetHasComplexChildren(System.Int32)
FindIndexOfFirstUnsetSizeOrLength(System.Text.Json.JsonTokenType)
FindOpenElement(System.Text.Json.JsonTokenType)
Get(System.Int32)
GetJsonTokenType(System.Int32)
CopySegment(System.Int32,System.Int32)
Parse(System.ReadOnlyMemory`1<System.Byte>,System.Text.Json.JsonDocumentOptions)
Parse(System.Buffers.ReadOnlySequence`1<System.Byte>,System.Text.Json.JsonDocumentOptions)
Parse(System.IO.Stream,System.Text.Json.JsonDocumentOptions)
ParseRented(System.Text.Json.PooledByteBufferWriter,System.Text.Json.JsonDocumentOptions)
ParseValue(System.IO.Stream,System.Text.Json.JsonDocumentOptions)
ParseValue(System.ReadOnlySpan`1<System.Byte>,System.Text.Json.JsonDocumentOptions)
ParseValue(System.String,System.Text.Json.JsonDocumentOptions)
ParseAsync(System.IO.Stream,System.Text.Json.JsonDocumentOptions,System.Threading.CancellationToken)
ParseAsyncCore()
ParseAsyncCoreUnrented()
Parse(System.ReadOnlyMemory`1<System.Char>,System.Text.Json.JsonDocumentOptions)
ParseValue(System.ReadOnlySpan`1<System.Char>,System.Text.Json.JsonDocumentOptions)
Parse(System.String,System.Text.Json.JsonDocumentOptions)
TryParseValue(System.Text.Json.Utf8JsonReader&,System.Text.Json.JsonDocument&)
ParseValue(System.Text.Json.Utf8JsonReader&)
ParseValue(System.Text.Json.Utf8JsonReader&,System.Boolean)
TryParseValue(System.Text.Json.Utf8JsonReader&,System.Text.Json.JsonDocument&,System.Boolean,System.Boolean,System.Boolean)
CreateForLiteral(System.Text.Json.JsonTokenType)
Parse(System.ReadOnlyMemory`1<System.Byte>,System.Text.Json.JsonReaderOptions,System.Byte[],System.Text.Json.PooledByteBufferWriter,System.Boolean)
ParseUnrented(System.ReadOnlyMemory`1<System.Byte>,System.Text.Json.JsonReaderOptions,System.Text.Json.JsonTokenType,System.Boolean)
ReadToEnd(System.IO.Stream)
ReadToEndAsync()
.ctor()
SetCapacity(System.Int32)
AddPropertyName(System.Text.Json.JsonProperty,System.Text.Json.JsonDocument)
SwitchToHashSet(System.ReadOnlyMemory`1<System.Byte>)
Reset()
Dispose()
.cctor()
Equals(System.ReadOnlyMemory`1<System.Byte>,System.ReadOnlyMemory`1<System.Byte>)
GetHashCode(System.ReadOnlyMemory`1<System.Byte>)
.ctor(System.Int32,System.Int32)
.ctor(System.Int32)
Dispose()
Push(System.Text.Json.JsonDocument/StackRow)
Pop()
Enlarge()
TryGetNamedPropertyValue(System.Int32,System.ReadOnlySpan`1<System.Char>,System.Text.Json.JsonElement&)
TryGetNamedPropertyValue(System.Int32,System.ReadOnlySpan`1<System.Byte>,System.Text.Json.JsonElement&)
TryGetNamedPropertyValue(System.Int32,System.Int32,System.ReadOnlySpan`1<System.Byte>,System.Text.Json.JsonElement&)