< Summary

Information
Class: System.Text.Json.Serialization.JsonObjectConverter<T>
Assembly: System.Text.Json
File(s): D:\runner\runtime\src\libraries\System.Text.Json\src\System\Text\Json\Serialization\Converters\Object\JsonObjectConverter.cs
Line coverage
33%
Covered lines: 1
Uncovered lines: 2
Coverable lines: 3
Total lines: 16
Line coverage: 33.3%
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
GetDefaultConverterStrategy()100%11100%
GetSupportedJsonValueTypes(...)100%110%

File(s)

D:\runner\runtime\src\libraries\System.Text.Json\src\System\Text\Json\Serialization\Converters\Object\JsonObjectConverter.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
 4namespace System.Text.Json.Serialization
 5{
 6    /// <summary>
 7    /// Base class for non-enumerable, non-primitive objects where public properties
 8    /// are (de)serialized as a JSON object.
 9    /// </summary>
 10    internal abstract class JsonObjectConverter<T> : JsonResumableConverter<T>
 11    {
 10412        private protected sealed override ConverterStrategy GetDefaultConverterStrategy() => ConverterStrategy.Object;
 013        internal sealed override JsonValueType GetSupportedJsonValueTypes(JsonNumberHandling _) => JsonValueType.Object;
 014        internal override bool CanPopulate => true;
 15    }
 16}