< Summary

Class:Azure.ResourceManager.Network.Models.AzureReachabilityReportItem
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\AzureReachabilityReportItem.cs
C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\AzureReachabilityReportItem.Serialization.cs
Covered lines:0
Uncovered lines:31
Coverable lines:31
Total lines:104
Line coverage:0% (0 of 31)
Covered branches:0
Total branches:18
Branch coverage:0% (0 of 18)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Provider()-0%100%
get_AzureLocation()-0%100%
get_Latencies()-0%100%
DeserializeAzureReachabilityReportItem(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\AzureReachabilityReportItem.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.Collections.Generic;
 9
 10namespace Azure.ResourceManager.Network.Models
 11{
 12    /// <summary> Azure reachability report details for a given provider location. </summary>
 13    public partial class AzureReachabilityReportItem
 14    {
 15        /// <summary> Initializes a new instance of AzureReachabilityReportItem. </summary>
 016        internal AzureReachabilityReportItem()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of AzureReachabilityReportItem. </summary>
 21        /// <param name="provider"> The Internet service provider. </param>
 22        /// <param name="azureLocation"> The Azure region. </param>
 23        /// <param name="latencies"> List of latency details for each of the time series. </param>
 024        internal AzureReachabilityReportItem(string provider, string azureLocation, IReadOnlyList<AzureReachabilityRepor
 25        {
 026            Provider = provider;
 027            AzureLocation = azureLocation;
 028            Latencies = latencies;
 029        }
 30
 31        /// <summary> The Internet service provider. </summary>
 032        public string Provider { get; }
 33        /// <summary> The Azure region. </summary>
 034        public string AzureLocation { get; }
 35        /// <summary> List of latency details for each of the time series. </summary>
 036        public IReadOnlyList<AzureReachabilityReportLatencyInfo> Latencies { get; }
 37    }
 38}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\AzureReachabilityReportItem.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.Collections.Generic;
 9using System.Text.Json;
 10using Azure.Core;
 11
 12namespace Azure.ResourceManager.Network.Models
 13{
 14    public partial class AzureReachabilityReportItem
 15    {
 16        internal static AzureReachabilityReportItem DeserializeAzureReachabilityReportItem(JsonElement element)
 17        {
 018            string provider = default;
 019            string azureLocation = default;
 020            IReadOnlyList<AzureReachabilityReportLatencyInfo> latencies = default;
 021            foreach (var property in element.EnumerateObject())
 22            {
 023                if (property.NameEquals("provider"))
 24                {
 025                    if (property.Value.ValueKind == JsonValueKind.Null)
 26                    {
 27                        continue;
 28                    }
 029                    provider = property.Value.GetString();
 030                    continue;
 31                }
 032                if (property.NameEquals("azureLocation"))
 33                {
 034                    if (property.Value.ValueKind == JsonValueKind.Null)
 35                    {
 36                        continue;
 37                    }
 038                    azureLocation = property.Value.GetString();
 039                    continue;
 40                }
 041                if (property.NameEquals("latencies"))
 42                {
 043                    if (property.Value.ValueKind == JsonValueKind.Null)
 44                    {
 45                        continue;
 46                    }
 047                    List<AzureReachabilityReportLatencyInfo> array = new List<AzureReachabilityReportLatencyInfo>();
 048                    foreach (var item in property.Value.EnumerateArray())
 49                    {
 050                        if (item.ValueKind == JsonValueKind.Null)
 51                        {
 052                            array.Add(null);
 53                        }
 54                        else
 55                        {
 056                            array.Add(AzureReachabilityReportLatencyInfo.DeserializeAzureReachabilityReportLatencyInfo(i
 57                        }
 58                    }
 059                    latencies = array;
 60                    continue;
 61                }
 62            }
 063            return new AzureReachabilityReportItem(provider, azureLocation, latencies);
 64        }
 65    }
 66}