< Summary

Information
Class: TicTacToeApp.API.Extensions.SwaggerMiddlewares
Assembly: TicTacToeApp.API
File(s): /home/runner/work/TicTacToe/TicTacToe/TicTacToeApp.API/Extensions/SwaggerMiddlewares.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 18
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 Crap Score Cyclomatic complexity Line coverage
UseSwaggerMiddleware(...)100%210%

File(s)

/home/runner/work/TicTacToe/TicTacToe/TicTacToeApp.API/Extensions/SwaggerMiddlewares.cs

#LineLine coverage
 1namespace TicTacToeApp.API.Extensions;
 2
 3public static class SwaggerMiddlewares
 4{
 5    public static WebApplication UseSwaggerMiddleware(this WebApplication app)
 6    {
 07        app.UseSwagger();
 08        app.UseSwaggerUI(c =>
 09        {
 010            c.SwaggerEndpoint("/swagger/v1/swagger.json", "Крестики-Нолики API");
 011            c.RoutePrefix = string.Empty;
 012        });
 13
 014        app.MapOpenApi();
 15
 016        return app;
 17    }
 18}