< Summary

Information
Class: NexusLabs.Needlr.ServiceCollectionPluginOptions
Assembly: NexusLabs.Needlr
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr/ServiceCollectionPluginOptions.cs
Line coverage
80%
Covered lines: 4
Uncovered lines: 1
Coverable lines: 5
Total lines: 20
Line coverage: 80%
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_Services()100%11100%
get_Config()100%210%
get_Assemblies()100%11100%
get_PluginFactory()100%11100%

File(s)

/home/runner/work/needlr/needlr/src/NexusLabs.Needlr/ServiceCollectionPluginOptions.cs

#LineLine coverage
 1using Microsoft.Extensions.Configuration;
 2using Microsoft.Extensions.DependencyInjection;
 3
 4using System.Reflection;
 5
 6namespace NexusLabs.Needlr;
 7
 8/// <summary>
 9/// Options provided to <see cref="IServiceCollectionPlugin"/> implementations during configuration.
 10/// Contains the service collection, configuration, discovered assemblies, and plugin factory.
 11/// </summary>
 12/// <param name="Services">The service collection for registering dependencies.</param>
 13/// <param name="Config">The application configuration.</param>
 14/// <param name="Assemblies">The list of assemblies discovered by Needlr.</param>
 15/// <param name="PluginFactory">Factory for creating additional plugin instances.</param>
 54116public sealed record ServiceCollectionPluginOptions(
 86217    IServiceCollection Services,
 018    IConfiguration Config,
 619    IReadOnlyList<Assembly> Assemblies,
 54920    IPluginFactory PluginFactory);