< Summary

Information
Class: Elsa.Common.ShellFeatures.StringCompressionFeature
Assembly: Elsa.Common
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/ShellFeatures/StringCompressionFeature.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 21
Line coverage: 0%
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
ConfigureServices(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/ShellFeatures/StringCompressionFeature.cs

#LineLine coverage
 1using CShells.Features;
 2using Elsa.Common.Codecs;
 3using Elsa.Common.Services;
 4using JetBrains.Annotations;
 5using Microsoft.Extensions.DependencyInjection;
 6
 7namespace Elsa.Common.ShellFeatures;
 8
 9[UsedImplicitly]
 10[ShellFeature("StringCompression")]
 11public class StringCompressionFeature : IShellFeature
 12{
 13    public void ConfigureServices(IServiceCollection services)
 14    {
 015        services
 016            .AddSingleton<ICompressionCodecResolver, CompressionCodecResolver>()
 017            .AddSingleton<ICompressionCodec, None>()
 018            .AddSingleton<ICompressionCodec, GZip>()
 019            .AddSingleton<ICompressionCodec, Zstd>();
 020    }
 21}