< Summary

Information
Class: Program
Assembly: webapi
File(s): /home/runner/work/poc-request-body-to-hash/poc-request-body-to-hash/src/webapi/Program.cs
Tag: 11_2152250506
Line coverage
100%
Covered lines: 18
Uncovered lines: 0
Coverable lines: 18
Total lines: 28
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Method coverage is only available for sponsors.

Upgrade to PRO version

Coverage History

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
<Main>$(...)100%2100%

File(s)

/home/runner/work/poc-request-body-to-hash/poc-request-body-to-hash/src/webapi/Program.cs

#LineLine coverage
 11var builder = WebApplication.CreateBuilder(args);
 2
 13builder.Services.AddControllers();
 14builder.Services.AddEndpointsApiExplorer();
 15builder.Services.AddSwaggerGen();
 6
 17var app = builder.Build();
 8
 19if (app.Environment.IsDevelopment())
 110{
 111    app.UseSwagger();
 112    app.UseSwaggerUI();
 113}
 14
 115app.UseAuthorization();
 16
 117app.Use((context, next) =>
 118{
 119    context.Request.EnableBuffering();
 120    return next(context);
 221});
 22
 123app.MapControllers();
 24
 125app.Run();
 26
 27
 28public partial class Program { }

Methods/Properties

<Main>$(System.String[])