< Summary

Class:Azure.Core.ResponseWithHeaders`1
Assembly:Azure.AI.FormRecognizer
File(s):C:\Git\azure-sdk-for-net\sdk\core\Azure.Core\src\Shared\AutoRest\ResponseWithHeaders{THeaders}.cs
Covered lines:7
Uncovered lines:0
Coverable lines:7
Total lines:24
Line coverage:100% (7 of 7)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
GetRawResponse()-100%100%
get_Headers()-100%100%
op_Implicit(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\core\Azure.Core\src\Shared\AutoRest\ResponseWithHeaders{THeaders}.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4#nullable enable
 5
 6namespace Azure.Core
 7{
 8    internal class ResponseWithHeaders<THeaders>
 9    {
 10        private readonly Response _rawResponse;
 11
 36812        public ResponseWithHeaders(THeaders headers, Response rawResponse)
 13        {
 36814            _rawResponse = rawResponse;
 36815            Headers = headers;
 36816        }
 17
 22018        public Response GetRawResponse() => _rawResponse;
 19
 14820        public THeaders Headers { get; }
 21
 22022        public static implicit operator Response(ResponseWithHeaders<THeaders> self) => self.GetRawResponse();
 23    }
 24}