< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Channels.StreamUpgradeAcceptor
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Channels/StreamUpgradeAcceptor.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 22
Line coverage: 100%
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
.ctor()100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Channels/StreamUpgradeAcceptor.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.Threading.Tasks;
 6using Microsoft.AspNetCore.Http.Features;
 7
 8namespace CoreWCF.Channels
 9{
 10    public abstract class StreamUpgradeAcceptor
 11    {
 912        protected StreamUpgradeAcceptor()
 13        {
 914        }
 15
 16        public abstract bool CanUpgrade(string contentType);
 17
 18        public abstract Task<Stream> AcceptUpgradeAsync(Stream stream);
 19
 1820        public virtual IFeatureCollection Features { get; }= new FeatureCollection();
 21    }
 22}

Methods/Properties

.ctor()
Features()