< Summary

Information
Class: NexusLabs.Needlr.Hosting.HostPluginOptions
Assembly: NexusLabs.Needlr.Hosting
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.Hosting/HostPluginOptions.cs
Line coverage
50%
Covered lines: 2
Uncovered lines: 2
Coverable lines: 4
Total lines: 19
Line coverage: 50%
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_Host()100%210%
get_Assemblies()100%210%
get_PluginFactory()100%11100%

File(s)

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

#LineLine coverage
 1using Microsoft.Extensions.Hosting;
 2
 3using System.Reflection;
 4
 5namespace NexusLabs.Needlr.Hosting;
 6
 7/// <summary>
 8/// Options passed to <see cref="IHostPlugin.Configure"/>.
 9/// </summary>
 10/// <param name="Host">The built host being configured.</param>
 11/// <param name="Assemblies">
 12/// The candidate assemblies selected by Needlr. Source-generated discovery includes every
 13/// generated TypeRegistry participant, including empty registries, when assembly metadata is available.
 14/// </param>
 15/// <param name="PluginFactory">Factory for creating additional plugin instances.</param>
 1216public sealed record HostPluginOptions(
 017    IHost Host,
 018    IReadOnlyList<Assembly> Assemblies,
 1219    IPluginFactory PluginFactory);