< Summary

Information
Class: Elsa.Extensions.StringArrayExtensions
Assembly: Elsa.Http
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Http/Extensions/StringArrayExtensions.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 11
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
JoinSegments(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Http/Extensions/StringArrayExtensions.cs

#LineLine coverage
 1// ReSharper disable once CheckNamespace
 2
 3namespace Elsa.Extensions;
 4
 5public static class StringArrayExtensions
 6{
 7    public static string JoinSegments(this IEnumerable<string?> segments, string separator = "/")
 8    {
 3109        return string.Join(separator, segments.Where(x => !string.IsNullOrWhiteSpace(x)).Select(x => x!.Trim('/')));
 10    }
 11}