< Summary

Information
Class: Elsa.Api.Client.Extensions.HttpResponseMessageExtensions
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Extensions/HeaderExtensions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 14
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
GetWorkflowInstanceId(...)0%620%

File(s)

/home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Extensions/HeaderExtensions.cs

#LineLine coverage
 1using Elsa.Api.Client.Shared;
 2
 3namespace Elsa.Api.Client.Extensions;
 4
 5/// <summary>
 6/// Contains extension methods for the <see cref="HttpResponseMessage"/> class.
 7/// </summary>
 8public static class HttpResponseMessageExtensions
 9{
 10    /// <summary>
 11    /// Gets the workflow instance ID from the response.
 12    /// </summary>
 013    public static string? GetWorkflowInstanceId(this HttpResponseMessage response) => response.Headers.TryGetValues(Head
 14}