< Summary

Information
Class: NexusLabs.Needlr.Carter.CarterWebApplicationBuilderPlugin
Assembly: NexusLabs.Needlr.Carter
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.Carter/CarterWebApplicationBuilderPlugin.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 24
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 Crap Score Cyclomatic complexity Line coverage
Configure(...)100%11100%

File(s)

/home/runner/work/needlr/needlr/src/NexusLabs.Needlr.Carter/CarterWebApplicationBuilderPlugin.cs

#LineLine coverage
 1using Carter;
 2
 3using Microsoft.Extensions.Logging;
 4
 5using NexusLabs.Needlr.AspNet;
 6
 7namespace NexusLabs.Needlr.Carter;
 8
 9/// <summary>
 10/// Plugin that registers Carter services with the web application builder.
 11/// Automatically adds Carter module support to the ASP.NET Core application.
 12/// </summary>
 13public sealed class CarterWebApplicationBuilderPlugin : IWebApplicationBuilderPlugin
 14{
 15    /// <inheritdoc />
 16    public void Configure(WebApplicationBuilderPluginOptions options)
 17    {
 1118        ArgumentNullException.ThrowIfNull(options);
 19
 920        options.Logger.LogInformation("Configuring Carter services...");
 921        options.Builder.Services.AddCarter();
 922        options.Logger.LogInformation("Carter services configured successfully.");
 923    }
 24}