< Summary

Information
Class: Intentum.Clustering.ClusteringExtensions
Assembly: Intentum.Clustering
File(s): /home/runner/work/Intentum/Intentum/src/Intentum.Clustering/ClusteringExtensions.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 21
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 Cyclomatic complexity NPath complexity Sequence coverage
AddIntentClustering(...)100%11100%

File(s)

/home/runner/work/Intentum/Intentum/src/Intentum.Clustering/ClusteringExtensions.cs

#LineLine coverage
 1using JetBrains.Annotations;
 2using Microsoft.Extensions.DependencyInjection;
 3
 4namespace Intentum.Clustering;
 5
 6/// <summary>
 7/// Extension methods for registering intent clustering with dependency injection.
 8/// </summary>
 9[UsedImplicitly]
 10public static class ClusteringExtensions
 11{
 12    /// <summary>
 13    /// Adds intent clustering to the service collection.
 14    /// </summary>
 15    [UsedImplicitly]
 16    public static IServiceCollection AddIntentClustering(this IServiceCollection services)
 117    {
 118        services.AddScoped<IIntentClusterer, IntentClusterer>();
 119        return services;
 120    }
 21}