< Summary

Class:Azure.ResourceManager.Compute.Models.ResourceSkuCapabilities
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\ResourceSkuCapabilities.cs
C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\ResourceSkuCapabilities.Serialization.cs
Covered lines:17
Uncovered lines:2
Coverable lines:19
Total lines:75
Line coverage:89.4% (17 of 19)
Covered branches:10
Total branches:10
Branch coverage:100% (10 of 10)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_Name()-100%100%
get_Value()-100%100%
DeserializeResourceSkuCapabilities(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\ResourceSkuCapabilities.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.Compute.Models
 9{
 10    /// <summary> Describes The SKU capabilities object. </summary>
 11    public partial class ResourceSkuCapabilities
 12    {
 13        /// <summary> Initializes a new instance of ResourceSkuCapabilities. </summary>
 014        internal ResourceSkuCapabilities()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of ResourceSkuCapabilities. </summary>
 19        /// <param name="name"> An invariant to describe the feature. </param>
 20        /// <param name="value"> An invariant if the feature is measured by quantity. </param>
 75232821        internal ResourceSkuCapabilities(string name, string value)
 22        {
 75232823            Name = name;
 75232824            Value = value;
 75232825        }
 26
 27        /// <summary> An invariant to describe the feature. </summary>
 428        public string Name { get; }
 29        /// <summary> An invariant if the feature is measured by quantity. </summary>
 430        public string Value { get; }
 31    }
 32}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\ResourceSkuCapabilities.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.Compute.Models
 12{
 13    public partial class ResourceSkuCapabilities
 14    {
 15        internal static ResourceSkuCapabilities DeserializeResourceSkuCapabilities(JsonElement element)
 16        {
 75232817            string name = default;
 75232818            string value = default;
 451396819            foreach (var property in element.EnumerateObject())
 20            {
 150465621                if (property.NameEquals("name"))
 22                {
 75232823                    if (property.Value.ValueKind == JsonValueKind.Null)
 24                    {
 25                        continue;
 26                    }
 75232827                    name = property.Value.GetString();
 75232828                    continue;
 29                }
 75232830                if (property.NameEquals("value"))
 31                {
 75232832                    if (property.Value.ValueKind == JsonValueKind.Null)
 33                    {
 34                        continue;
 35                    }
 75232836                    value = property.Value.GetString();
 37                    continue;
 38                }
 39            }
 75232840            return new ResourceSkuCapabilities(name, value);
 41        }
 42    }
 43}