< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Channels.Framing.StreamDuplexPipe
Assembly: CoreWCF.NetFramingBase
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.NetFramingBase/src/CoreWCF/Channels/Framing/StreamDuplexPipe.cs
Line coverage
90%
Covered lines: 9
Uncovered lines: 1
Coverable lines: 10
Total lines: 25
Line coverage: 90%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.cctor()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.NetFramingBase/src/CoreWCF/Channels/Framing/StreamDuplexPipe.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4using System.IO;
 5using System.IO.Pipelines;
 6
 7namespace CoreWCF.Channels.Framing
 8{
 9    internal class StreamDuplexPipe : IDuplexPipe
 10    {
 211        private static readonly StreamPipeReaderOptions s_readerOpts = new StreamPipeReaderOptions(leaveOpen: true);
 212        private static readonly StreamPipeWriterOptions s_writerOpts = new StreamPipeWriterOptions(leaveOpen: true);
 13
 814        public StreamDuplexPipe(IDuplexPipe transport, Stream stream)
 15        {
 816            Stream = stream;
 817            Input = PipeReader.Create(stream, s_readerOpts);
 818            Output = PipeWriter.Create(stream, s_writerOpts);
 819        }
 20
 021        public Stream Stream { get; }
 16722        public PipeReader Input { get; }
 6123        public PipeWriter Output { get; }
 24    }
 25}