< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.UriTemplatePathPartiallyEquivalentSet
Assembly: CoreWCF.WebHttp
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.WebHttp/src/CoreWCF/UriTemplatePathPartiallyEquivalentSet.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 26
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.WebHttp/src/CoreWCF/UriTemplatePathPartiallyEquivalentSet.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.Collections.Generic;
 5
 6namespace CoreWCF
 7{
 8    // This class was named UriTemplatePathEquivalentSet in the Orcas bits, where it used to
 9    //  represent a set of uri templates, which are equivalent in thier path. The introduction
 10    //  of terminal defaults, caused it to be no longer true; now it is representing a set
 11    //  of templates, which are equivalent in their path till a certian point, which is stored
 12    //  in the segmentsCount field. To highlight that fact the class was renamed as
 13    //  UriTemplatePathPartiallyEquivalentSet.
 14    internal class UriTemplatePathPartiallyEquivalentSet
 15    {
 38016        public UriTemplatePathPartiallyEquivalentSet(int segmentsCount)
 17        {
 38018            SegmentsCount = segmentsCount;
 38019            Items = new List<KeyValuePair<UriTemplate, object>>();
 38020        }
 21
 104222        public List<KeyValuePair<UriTemplate, object>> Items { get; }
 23
 12124        public int SegmentsCount { get; }
 25    }
 26}