< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
get_TargetCondition()-0%100%
get_CustomMetricQueries()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\iot\Azure.Iot.Hub.Service\src\Generated\Models\ConfigurationQueriesTestInput.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 ConfigurationQueriesTestInput. </summary>
 14    public partial class ConfigurationQueriesTestInput
 15    {
 16        /// <summary> Initializes a new instance of ConfigurationQueriesTestInput. </summary>
 017        public ConfigurationQueriesTestInput()
 18        {
 019            CustomMetricQueries = new ChangeTrackingDictionary<string, string>();
 020        }
 21
 22        /// <summary> The query used to define targeted devices or modules. The query is based on twin tags and/or repor
 023        public string TargetCondition { get; set; }
 24        /// <summary> The key-value pairs with queries and their identifier. </summary>
 025        public IDictionary<string, string> CustomMetricQueries { get; }
 26    }
 27}

C:\Git\azure-sdk-for-net\sdk\iot\Azure.Iot.Hub.Service\src\Generated\Models\ConfigurationQueriesTestInput.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.Iot.Hub.Service.Models
 12{
 13    public partial class ConfigurationQueriesTestInput : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (Optional.IsDefined(TargetCondition))
 19            {
 020                writer.WritePropertyName("targetCondition");
 021                writer.WriteStringValue(TargetCondition);
 22            }
 023            if (Optional.IsCollectionDefined(CustomMetricQueries))
 24            {
 025                writer.WritePropertyName("customMetricQueries");
 026                writer.WriteStartObject();
 027                foreach (var item in CustomMetricQueries)
 28                {
 029                    writer.WritePropertyName(item.Key);
 030                    writer.WriteStringValue(item.Value);
 31                }
 032                writer.WriteEndObject();
 33            }
 034            writer.WriteEndObject();
 035        }
 36    }
 37}