< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.OpenApi.Attributes.OpenApiBasePathAttribute
Assembly: CoreWCF.WebHttp
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.WebHttp/src/CoreWCF/OpenApi/Attributes/OpenApiBasePathAttribute.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 28
Line coverage: 0%
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%110%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.WebHttp/src/CoreWCF/OpenApi/Attributes/OpenApiBasePathAttribute.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;
 5
 6namespace CoreWCF.OpenApi.Attributes
 7{
 8    /// <summary>
 9    /// Attribute to denote base path for the API.
 10    /// </summary>
 11    [AttributeUsage(AttributeTargets.Interface | AttributeTargets.Class)]
 12    public sealed class OpenApiBasePathAttribute : Attribute
 13    {
 14        /// <summary>
 15        /// Constructor.
 16        /// </summary>
 17        /// <param name="basePath">Base path for the API.</param>
 018        public OpenApiBasePathAttribute(string basePath)
 19        {
 020            BasePath = basePath;
 021        }
 22
 23        /// <summary>
 24        /// Base path for the API.
 25        /// </summary>
 026        public string BasePath { get; }
 27    }
 28}

Methods/Properties

.ctor(System.String)
BasePath()