< Summary - Code Coverage

Information
Class: Plainquire.Page.Swashbuckle.SwaggerGenOptionsExtensions
Assembly: Plainquire.Page.Swashbuckle
File(s): /home/runner/work/plainquire/plainquire/Plainquire.Page/Plainquire.Page.Swashbuckle/Extensions/SwaggerGenOptionsExtensions.cs
Tag: 64_13932151703
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 25
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 1
Total methods: 1
Method coverage: 100%

Metrics

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

File(s)

/home/runner/work/plainquire/plainquire/Plainquire.Page/Plainquire.Page.Swashbuckle/Extensions/SwaggerGenOptionsExtensions.cs

#LineLine coverage
 1using Microsoft.Extensions.DependencyInjection;
 2using Plainquire.Page.Swashbuckle.Filters;
 3using Swashbuckle.AspNetCore.SwaggerGen;
 4using System.Diagnostics.CodeAnalysis;
 5
 6namespace Plainquire.Page.Swashbuckle;
 7
 8/// <summary>
 9/// Extensions to register entity filter extensions to Swashbuckle.AspNetCore (https://github.com/domaindrivendev/Swashb
 10/// </summary>
 11/// <autogeneratedoc />
 12[SuppressMessage("ReSharper", "UnusedMethodReturnValue.Global", Justification = "Provided as library, can be used from o
 13public static class SwaggerGenOptionsExtensions
 14{
 15    /// <summary>
 16    /// Replaces action parameters of type <see cref="EntityPage{TEntity}"/> with filterable properties of type <c>TEnti
 17    /// </summary>
 18    /// <param name="options">The options.</param>
 19    /// <param name="xmlDocumentationFilePaths">Paths to XML documentation files. Used to provide parameter descriptions
 20    public static SwaggerGenOptions AddPageSupport(this SwaggerGenOptions options, params string[] xmlDocumentationFileP
 21    {
 522        options.OperationFilter<EntityPageParameterReplacer>();
 523        return options;
 24    }
 25}