< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\iot\Azure.Iot.Hub.Service\src\Generated\Models\QuerySpecification.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.Iot.Hub.Service.Models
 9{
 10    /// <summary> The Json query request. </summary>
 11    public partial class QuerySpecification
 12    {
 13        /// <summary> Initializes a new instance of QuerySpecification. </summary>
 1414        public QuerySpecification()
 15        {
 1416        }
 17
 18        /// <summary> The query string. </summary>
 4219        public string Query { get; set; }
 20    }
 21}

C:\Git\azure-sdk-for-net\sdk\iot\Azure.Iot.Hub.Service\src\Generated\Models\QuerySpecification.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 QuerySpecification : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 1417            writer.WriteStartObject();
 1418            if (Optional.IsDefined(Query))
 19            {
 1420                writer.WritePropertyName("query");
 1421                writer.WriteStringValue(Query);
 22            }
 1423            writer.WriteEndObject();
 1424        }
 25    }
 26}