< Summary

Class:Azure.DigitalTwins.Core.QueryQueryTwinsHeaders
Assembly:Azure.DigitalTwins.Core
File(s):C:\Git\azure-sdk-for-net\sdk\digitaltwins\Azure.DigitalTwins.Core\src\Generated\QueryQueryTwinsHeaders.cs
Covered lines:3
Uncovered lines:1
Coverable lines:4
Total lines:23
Line coverage:75% (3 of 4)
Covered branches:0
Total branches:2
Branch coverage:0% (0 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
get_QueryCharge()-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\digitaltwins\Azure.DigitalTwins.Core\src\Generated\QueryQueryTwinsHeaders.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 Azure;
 9using Azure.Core;
 10
 11namespace Azure.DigitalTwins.Core
 12{
 13    internal class QueryQueryTwinsHeaders
 14    {
 15        private readonly Response _response;
 416        public QueryQueryTwinsHeaders(Response response)
 17        {
 418            _response = response;
 419        }
 20        /// <summary> The query charge. </summary>
 021        public float? QueryCharge => _response.Headers.TryGetValue("query-charge", out float? value) ? value : null;
 22    }
 23}

Methods/Properties

.ctor(...)
get_QueryCharge()