< Summary

Information
Class: NexusLabs.Needlr.Hosting.HostApplicationBuilderPluginOptions
Assembly: NexusLabs.Needlr.Hosting
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.Hosting/HostApplicationBuilderPluginOptions.cs
Line coverage
40%
Covered lines: 2
Uncovered lines: 3
Coverable lines: 5
Total lines: 22
Line coverage: 40%
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
.ctor(...)100%11100%
get_Builder()100%210%
get_Assemblies()100%210%
get_Logger()100%210%
get_PluginFactory()100%11100%

File(s)

/home/runner/work/needlr/needlr/src/NexusLabs.Needlr.Hosting/HostApplicationBuilderPluginOptions.cs

#LineLine coverage
 1using Microsoft.Extensions.Hosting;
 2using Microsoft.Extensions.Logging;
 3
 4using System.Reflection;
 5
 6namespace NexusLabs.Needlr.Hosting;
 7
 8/// <summary>
 9/// Options passed to <see cref="IHostApplicationBuilderPlugin.Configure"/>.
 10/// </summary>
 11/// <param name="Builder">The host application builder being configured.</param>
 12/// <param name="Assemblies">
 13/// The candidate assemblies selected by Needlr. Source-generated discovery includes every
 14/// generated TypeRegistry participant, including empty registries, when assembly metadata is available.
 15/// </param>
 16/// <param name="Logger">Logger for host plugin execution.</param>
 17/// <param name="PluginFactory">Factory for creating additional plugin instances.</param>
 1718public sealed record HostApplicationBuilderPluginOptions(
 019    HostApplicationBuilder Builder,
 020    IReadOnlyList<Assembly> Assemblies,
 021    ILogger Logger,
 1722    IPluginFactory PluginFactory);