< Summary

Information
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 31
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor()100%11100%
ConfigureJsonTypeInfoUsingReflection(...)100%11100%

File(s)

https://raw.githubusercontent.com/dotnet/runtime/811a7eabb75c42db53440e8ba3f60c07511cfd1f/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Object/ObjectWithParameterizedConstructorConverter.Large.Reflection.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4using System.Diagnostics;
 5using System.Diagnostics.CodeAnalysis;
 6using System.Text.Json.Serialization.Metadata;
 7
 8namespace System.Text.Json.Serialization.Converters
 9{
 10    /// <summary>
 11    /// Implementation of <cref>JsonObjectConverter{T}</cref> that supports the deserialization
 12    /// of JSON objects using parameterized constructors.
 13    /// </summary>
 14    internal sealed class LargeObjectWithParameterizedConstructorConverterWithReflection<T>
 15        : LargeObjectWithParameterizedConstructorConverter<T> where T : notnull
 16    {
 17        [RequiresUnreferencedCode(JsonSerializer.SerializationUnreferencedCodeMessage)]
 18        [RequiresDynamicCode(JsonSerializer.SerializationRequiresDynamicCodeMessage)]
 33319        public LargeObjectWithParameterizedConstructorConverterWithReflection()
 33320        {
 33321        }
 22
 23        [RequiresUnreferencedCode(JsonSerializer.SerializationUnreferencedCodeMessage)]
 24        [RequiresDynamicCode(JsonSerializer.SerializationRequiresDynamicCodeMessage)]
 25        internal override void ConfigureJsonTypeInfoUsingReflection(JsonTypeInfo jsonTypeInfo, JsonSerializerOptions opt
 33326        {
 33327            jsonTypeInfo.CreateObjectWithArgs = DefaultJsonTypeInfoResolver.MemberAccessor.CreateParameterizedConstructo
 33328        }
 29    }
 30}
 31