< Summary

Class:Azure.Iot.Hub.Service.Models.ConfigurationQueriesTestResponse
Assembly:Azure.Iot.Hub.Service
File(s):C:\Git\azure-sdk-for-net\sdk\iot\Azure.Iot.Hub.Service\src\Generated\Models\ConfigurationQueriesTestResponse.cs
C:\Git\azure-sdk-for-net\sdk\iot\Azure.Iot.Hub.Service\src\Generated\Models\ConfigurationQueriesTestResponse.Serialization.cs
Covered lines:0
Uncovered lines:21
Coverable lines:21
Total lines:77
Line coverage:0% (0 of 21)
Covered branches:0
Total branches:8
Branch coverage:0% (0 of 8)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_TargetConditionError()-0%100%
get_CustomMetricQueryErrors()-0%100%
DeserializeConfigurationQueriesTestResponse(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\iot\Azure.Iot.Hub.Service\src\Generated\Models\ConfigurationQueriesTestResponse.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 Azure.Core;
 10
 11namespace Azure.Iot.Hub.Service.Models
 12{
 13    /// <summary> The ConfigurationQueriesTestResponse. </summary>
 14    public partial class ConfigurationQueriesTestResponse
 15    {
 16        /// <summary> Initializes a new instance of ConfigurationQueriesTestResponse. </summary>
 017        internal ConfigurationQueriesTestResponse()
 18        {
 019            CustomMetricQueryErrors = new ChangeTrackingDictionary<string, string>();
 020        }
 21
 22        /// <summary> Initializes a new instance of ConfigurationQueriesTestResponse. </summary>
 23        /// <param name="targetConditionError"> The errors from running the target condition query. </param>
 24        /// <param name="customMetricQueryErrors"> The errors from running the custom metric query. </param>
 025        internal ConfigurationQueriesTestResponse(string targetConditionError, IReadOnlyDictionary<string, string> custo
 26        {
 027            TargetConditionError = targetConditionError;
 028            CustomMetricQueryErrors = customMetricQueryErrors;
 029        }
 30
 31        /// <summary> The errors from running the target condition query. </summary>
 032        public string TargetConditionError { get; }
 33        /// <summary> The errors from running the custom metric query. </summary>
 034        public IReadOnlyDictionary<string, string> CustomMetricQueryErrors { get; }
 35    }
 36}

C:\Git\azure-sdk-for-net\sdk\iot\Azure.Iot.Hub.Service\src\Generated\Models\ConfigurationQueriesTestResponse.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.Iot.Hub.Service.Models
 13{
 14    public partial class ConfigurationQueriesTestResponse
 15    {
 16        internal static ConfigurationQueriesTestResponse DeserializeConfigurationQueriesTestResponse(JsonElement element
 17        {
 018            Optional<string> targetConditionError = default;
 019            Optional<IReadOnlyDictionary<string, string>> customMetricQueryErrors = default;
 020            foreach (var property in element.EnumerateObject())
 21            {
 022                if (property.NameEquals("targetConditionError"))
 23                {
 024                    targetConditionError = property.Value.GetString();
 025                    continue;
 26                }
 027                if (property.NameEquals("customMetricQueryErrors"))
 28                {
 029                    Dictionary<string, string> dictionary = new Dictionary<string, string>();
 030                    foreach (var property0 in property.Value.EnumerateObject())
 31                    {
 032                        dictionary.Add(property0.Name, property0.Value.GetString());
 33                    }
 034                    customMetricQueryErrors = dictionary;
 35                    continue;
 36                }
 37            }
 038            return new ConfigurationQueriesTestResponse(targetConditionError.Value, Optional.ToDictionary(customMetricQu
 39        }
 40    }
 41}