< Summary

Class:Azure.ResourceManager.Resources.Models.TagValue
Assembly:Azure.ResourceManager.Resources
File(s):C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\TagValue.cs
C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\TagValue.Serialization.cs
Covered lines:22
Uncovered lines:4
Coverable lines:26
Total lines:89
Line coverage:84.6% (22 of 26)
Covered branches:14
Total branches:14
Branch coverage:100% (14 of 14)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_Id()-0%100%
get_TagValueValue()-100%100%
get_Count()-0%100%
DeserializeTagValue(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\TagValue.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8namespace Azure.ResourceManager.Resources.Models
 9{
 10    /// <summary> Tag information. </summary>
 11    public partial class TagValue
 12    {
 13        /// <summary> Initializes a new instance of TagValue. </summary>
 014        internal TagValue()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of TagValue. </summary>
 19        /// <param name="id"> The tag value ID. </param>
 20        /// <param name="tagValueValue"> The tag value. </param>
 21        /// <param name="count"> The tag value count. </param>
 28422        internal TagValue(string id, string tagValueValue, TagCount count)
 23        {
 28424            Id = id;
 28425            TagValueValue = tagValueValue;
 28426            Count = count;
 28427        }
 28
 29        /// <summary> The tag value ID. </summary>
 030        public string Id { get; }
 31        /// <summary> The tag value. </summary>
 432        public string TagValueValue { get; }
 33        /// <summary> The tag value count. </summary>
 034        public TagCount Count { get; }
 35    }
 36}

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\TagValue.Serialization.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System.Text.Json;
 9using Azure.Core;
 10
 11namespace Azure.ResourceManager.Resources.Models
 12{
 13    public partial class TagValue
 14    {
 15        internal static TagValue DeserializeTagValue(JsonElement element)
 16        {
 28417            string id = default;
 28418            string tagValue = default;
 28419            TagCount count = default;
 227220            foreach (var property in element.EnumerateObject())
 21            {
 85222                if (property.NameEquals("id"))
 23                {
 28424                    if (property.Value.ValueKind == JsonValueKind.Null)
 25                    {
 26                        continue;
 27                    }
 28428                    id = property.Value.GetString();
 28429                    continue;
 30                }
 56831                if (property.NameEquals("tagValue"))
 32                {
 28433                    if (property.Value.ValueKind == JsonValueKind.Null)
 34                    {
 35                        continue;
 36                    }
 28437                    tagValue = property.Value.GetString();
 28438                    continue;
 39                }
 28440                if (property.NameEquals("count"))
 41                {
 28442                    if (property.Value.ValueKind == JsonValueKind.Null)
 43                    {
 44                        continue;
 45                    }
 28446                    count = TagCount.DeserializeTagCount(property.Value);
 47                    continue;
 48                }
 49            }
 28450            return new TagValue(id, tagValue, count);
 51        }
 52    }
 53}