< Summary

Class:Azure.Data.AppConfiguration.ConfigurationSettingJsonConverter
Assembly:Azure.Data.AppConfiguration
File(s):C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.Data.AppConfiguration\src\ConfigurationSettingJsonConverter.cs
Covered lines:3
Uncovered lines:0
Coverable lines:3
Total lines:22
Line coverage:100% (3 of 3)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
Read(...)-100%100%
Write(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.Data.AppConfiguration\src\ConfigurationSettingJsonConverter.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5using System.Text.Json;
 6using System.Text.Json.Serialization;
 7
 8namespace Azure.Data.AppConfiguration
 9{
 10    internal class ConfigurationSettingJsonConverter : JsonConverter<ConfigurationSetting>
 11    {
 12        public override ConfigurationSetting Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions o
 13        {
 414            return ConfigurationServiceSerializer.ReadSetting(ref reader);
 15        }
 16
 17        public override void Write(Utf8JsonWriter writer, ConfigurationSetting value, JsonSerializerOptions options)
 18        {
 419            ConfigurationServiceSerializer.WriteSetting(writer, value);
 420        }
 21    }
 22}

Methods/Properties

Read(...)
Write(...)