< Summary

Information
Class: Elsa.Tenants.Mediator.TenantHeaders
Assembly: Elsa.Tenants
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Tenants/Mediator/TenantHeaders.cs
Line coverage
75%
Covered lines: 3
Uncovered lines: 1
Coverable lines: 4
Total lines: 13
Line coverage: 75%
Branch coverage
50%
Covered branches: 1
Total branches: 2
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.cctor()100%210%
CreateHeaders(...)50%22100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Tenants/Mediator/TenantHeaders.cs

#LineLine coverage
 1namespace Elsa.Tenants.Mediator;
 2
 3public static class TenantHeaders
 4{
 05    public static readonly object TenantIdKey = new();
 6
 7    public static IDictionary<object, object> CreateHeaders(string? tenantId)
 8    {
 229        var headers = new Dictionary<object, object>();
 2210        if (tenantId != null) headers.Add(TenantIdKey, tenantId);
 2211        return headers;
 12    }
 13}