< Summary

Line coverage
37%
Covered lines: 327
Uncovered lines: 539
Coverable lines: 866
Total lines: 2034
Line coverage: 37.7%
Branch coverage
30%
Covered branches: 114
Total branches: 372
Branch coverage: 30.6%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
File 1: .ctor(...)100%11100%
File 1: GetProperty(...)0%26260%
File 1: UpdateUtf8PropertyCache(...)0%440%
File 2: .ctor(...)100%11100%
File 2: SetPolymorphismOptions(...)0%220%
File 2: MakeReadOnly()100%11100%
File 2: .ctor(...)100%110%
File 2: OnCollectionModifying()100%110%
File 2: SetUnionDeconstructor(...)0%220%
File 2: SetUnionConstructor(...)0%220%
File 2: ValidateCanBeUsedForPropertyMetadataSerialization()0%220%
File 2: VerifyMutable()50%2266.66%
File 2: EnsureConfigured()100%22100%
File 2: ConfigureSynchronized()66.66%6677.27%
File 2: Configure()66.66%242472.09%
File 2: ValidateUnionContract()0%660%
File 2: CacheUnionNullableCaseType()0%440%
File 2: ConfigureTypeClassifier()0%12120%
File 2: BuildUnionValueTypeMap(...)0%880%
File 2: AddUnionValueTypes(System.Text.Json.Serialization.JsonValueType,System.Type,System.Collections.Generic.Dictionary`2<System.Text.Json.Serialization.JsonValueType,System.Type>,System.Text.Json.Serialization.JsonValueType&)0%660%
File 2: DetermineIsCompatibleWithCurrentOptions()72.22%181860.71%
File 2: IsCurrentNodeCompatible()50%4466.66%
File 2: DetermineUsesParameterizedConstructor()100%22100%
File 2: CreateJsonTypeInfo(...)100%110%
File 2: CreateJsonTypeInfo(...)0%220%
File 2: CreateJsonTypeInfo(...)50%2257.14%
File 2: CreateJsonPropertyInfo(...)0%220%
File 2: CreatePropertyUsingReflection(...)75%44100%
File 2: .ctor(...)50%22100%
File 2: GetHashCode()100%11100%
File 2: Equals(...)50%22100%
File 2: Equals(...)0%220%
File 2: ConfigureProperties()39.28%282868.42%
File 2: PopulateParameterInfoValues(...)100%22100%
File 2: ResolveMatchingParameterInfo(...)62.5%88100%
File 2: ConfigureConstructorParameters()58.33%121264.51%
File 2: ValidateType(...)50%2260%
File 2: IsInvalidForSerialization(...)50%88100%
File 2: MapInterfaceTypesToCallbacks()71.42%141445.45%
File 2: SetCreateObjectIfCompatible(...)100%44100%
File 2: IsValidExtensionDataProperty(...)0%10100%
File 2: GetTypeInfoKind(...)50%181873.33%
File 2: .ctor(...)100%11100%
File 2: OnCollectionModifying()50%4477.77%
File 2: ValidateAddedValue(...)100%11100%
File 2: SortProperties()100%110%
File 2: AddPropertyWithConflictResolution(...)11.11%181829.72%

File(s)

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonTypeInfo.Cache.cs

Error during reading file 'https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonTypeInfo.Cache.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/Serialization/Metadata/JsonTypeInfo.cs

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

Methods/Properties

ParameterCount()
ParameterCache()
UsesParameterizedConstructor()
PropertyCache()
PropertyIndex()
.ctor(System.Type,System.Text.Json.Serialization.JsonConverter,System.Text.Json.JsonSerializerOptions)
GetProperty(System.ReadOnlySpan`1<System.Byte>,System.Text.Json.ReadStackFrame&,System.Byte[]&)
UpdateUtf8PropertyCache(System.Text.Json.ReadStackFrame&)
OptionalPropertiesMask()
ShouldTrackRequiredProperties()
.ctor(System.Type,System.Text.Json.Serialization.JsonConverter,System.Text.Json.JsonSerializerOptions)
ElementType()
KeyType()
CreateObject()
CreateObject(System.Func`1<System.Object>)
CreateObjectForExtensionDataProperty()
OnSerializing()
OnSerializing(System.Action`1<System.Object>)
OnSerialized()
OnSerialized(System.Action`1<System.Object>)
OnDeserializing()
OnDeserializing(System.Action`1<System.Object>)
OnDeserialized()
OnDeserialized(System.Action`1<System.Object>)
Properties()
PropertyList()
tePropertyList()
SourceGenDelayedPropertyInitializer(System.Func`2<System.Text.Json.Serialization.JsonSerializerContext,System.Text.Json.Serialization.Metadata.JsonPropertyInfo[]>)
PolymorphismOptions()
PolymorphismOptions(System.Text.Json.Serialization.Metadata.JsonPolymorphismOptions)
SetPolymorphismOptions(System.Text.Json.Serialization.Metadata.JsonPolymorphismOptions)
IsReadOnly()
MakeReadOnly()
UnionCases()
UnionCaseList()
teUnionCaseList()
.ctor(System.Text.Json.Serialization.Metadata.JsonTypeInfo,System.Collections.Generic.IEnumerable`1<System.Text.Json.Serialization.Metadata.JsonUnionCaseInfo>)
IsReadOnly()
OnCollectionModifying()
TypeClassifier()
TypeClassifier(System.Text.Json.Serialization.JsonTypeClassifier)
UnionDeconstructor()
UnionDeconstructor(System.Func`2<System.Object,System.ValueTuple`2<System.Type,System.Object>>)
SetUnionDeconstructor(System.Delegate)
UnionConstructor()
UnionConstructor(System.Func`3<System.Type,System.Object,System.Object>)
SetUnionConstructor(System.Delegate)
UnionValueTypeMap()
UnionAmbiguousValueTypes()
UnionNullableCaseType()
TypeClassifierFactory()
TypeClassifierFactory(System.Text.Json.Serialization.JsonTypeClassifierFactory)
TypeClassifierResolutionPending(System.Boolean)
CreateObjectWithArgs()
AddMethodDelegate()
ExtensionDataProperty()
PolymorphicTypeResolver()
HasSerializeHandler()
CanUseSerializeHandler()
PropertyMetadataSerializationNotSupported()
IsNullable()
ValidateCanBeUsedForPropertyMetadataSerialization()
ElementTypeInfo()
ElementTypeInfo(System.Text.Json.Serialization.Metadata.JsonTypeInfo)
KeyTypeInfo()
KeyTypeInfo(System.Text.Json.Serialization.Metadata.JsonTypeInfo)
Options()
Type()
Converter()
Kind()
PropertyInfoForTypeInfo()
NumberHandling()
NumberHandling(System.Nullable`1<System.Text.Json.Serialization.JsonNumberHandling>)
EffectiveNumberHandling()
UnmappedMemberHandling()
UnmappedMemberHandling(System.Nullable`1<System.Text.Json.Serialization.JsonUnmappedMemberHandling>)
EffectiveUnmappedMemberHandling()
PreferredPropertyObjectCreationHandling()
PreferredPropertyObjectCreationHandling(System.Nullable`1<System.Text.Json.Serialization.JsonObjectCreationHandling>)
OriginatingResolver()
OriginatingResolver(System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver)
ConstructorAttributeProvider()
ConstructorAttributeProvider(System.Reflection.ICustomAttributeProvider)
VerifyMutable()
IsCustomized()
IsConfigured()
IsConfigurationStarted()
EnsureConfigured()
ConfigureSynchronized()
Configure()
ValidateUnionContract()
CacheUnionNullableCaseType()
ConfigureTypeClassifier()
BuildUnionValueTypeMap(System.Collections.Generic.IList`1<System.Text.Json.Serialization.Metadata.JsonUnionCaseInfo>,System.Text.Json.JsonSerializerOptions,System.Text.Json.Serialization.Metadata.JsonTypeInfo)
AddUnionValueTypes(System.Text.Json.Serialization.JsonValueType,System.Type,System.Collections.Generic.Dictionary`2<System.Text.Json.Serialization.JsonValueType,System.Type>,System.Text.Json.Serialization.JsonValueType&)
AncestorPolymorphicType()
DetermineIsCompatibleWithCurrentOptions()
IsCurrentNodeCompatible()
IsCompatibleWithCurrentOptions()
DetermineUsesParameterizedConstructor()
CreateJsonTypeInfo(System.Text.Json.JsonSerializerOptions)
CreateJsonTypeInfo(System.Type,System.Text.Json.JsonSerializerOptions)
CreateJsonTypeInfo(System.Type,System.Text.Json.Serialization.JsonConverter,System.Text.Json.JsonSerializerOptions)
CreateJsonPropertyInfo(System.Type,System.String)
CreatePropertyUsingReflection(System.Type,System.Type)
.ctor(System.Text.Json.JsonSerializerOptions)
Type()
Name()
GetHashCode()
Equals(System.Text.Json.Serialization.Metadata.JsonTypeInfo/ParameterLookupKey)
Equals(System.Object)
ConfigureProperties()
PopulateParameterInfoValues(System.Text.Json.Serialization.Metadata.JsonParameterInfoValues[])
ResolveMatchingParameterInfo(System.Text.Json.Serialization.Metadata.JsonPropertyInfo)
ConfigureConstructorParameters()
ValidateType(System.Type)
IsInvalidForSerialization(System.Type)
MapInterfaceTypesToCallbacks()
SetCreateObjectIfCompatible(System.Delegate)
SupportsPolymorphicDeserialization()
IsValidExtensionDataProperty(System.Type)
GetTypeInfoKind(System.Type,System.Text.Json.Serialization.JsonConverter)
.ctor(System.Text.Json.Serialization.Metadata.JsonTypeInfo)
IsReadOnly()
OnCollectionModifying()
ValidateAddedValue(System.Text.Json.Serialization.Metadata.JsonPropertyInfo)
SortProperties()
AddPropertyWithConflictResolution(System.Text.Json.Serialization.Metadata.JsonPropertyInfo,System.Text.Json.Serialization.Metadata.JsonTypeInfo/PropertyHierarchyResolutionState&)
DebuggerDisplay()