< Summary

Information
Class: Elsa.Common.Codecs.None
Assembly: Elsa.Common
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/Codecs/None.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 19
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 Crap Score Cyclomatic complexity Line coverage
CompressAsync(...)100%11100%
DecompressAsync(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/Codecs/None.cs

#LineLine coverage
 1namespace Elsa.Common.Codecs;
 2
 3/// <summary>
 4/// Represents a compression strategy that does not compress or decompress the input.
 5/// </summary>
 6public class None : ICompressionCodec
 7{
 8    /// <inheritdoc />
 9    public ValueTask<string> CompressAsync(string input, CancellationToken cancellationToken)
 10    {
 96311        return new ValueTask<string>(input);
 12    }
 13
 14    /// <inheritdoc />
 15    public ValueTask<string> DecompressAsync(string input, CancellationToken cancellationToken)
 16    {
 11117        return new ValueTask<string>(input);
 18    }
 19}