< Summary

Class:Azure.Core.Pipeline.HttpPipelineTransportPolicy
Assembly:Azure.Core
File(s):C:\Git\azure-sdk-for-net\sdk\core\Azure.Core\src\Pipeline\Internal\HttpPipelineTransportPolicy.cs
Covered lines:6
Uncovered lines:0
Coverable lines:6
Total lines:33
Line coverage:100% (6 of 6)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
ProcessAsync(...)-100%100%
Process(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\core\Azure.Core\src\Pipeline\Internal\HttpPipelineTransportPolicy.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5using System.Diagnostics;
 6using System.Threading.Tasks;
 7
 8namespace Azure.Core.Pipeline
 9{
 10    internal class HttpPipelineTransportPolicy : HttpPipelinePolicy
 11    {
 12        private readonly HttpPipelineTransport _transport;
 13
 134814        public HttpPipelineTransportPolicy(HttpPipelineTransport transport)
 15        {
 134816            _transport = transport;
 134817        }
 18
 19        public override ValueTask ProcessAsync(HttpMessage message, ReadOnlyMemory<HttpPipelinePolicy> pipeline)
 20        {
 21            Debug.Assert(pipeline.IsEmpty);
 22
 160823            return _transport.ProcessAsync(message);
 24        }
 25
 26        public override void Process(HttpMessage message, ReadOnlyMemory<HttpPipelinePolicy> pipeline)
 27        {
 28            Debug.Assert(pipeline.IsEmpty);
 29
 156030            _transport.Process(message);
 151831        }
 32    }
 33}