< Summary - AsyncResponse (Release / net8.0+net10.0 / unit+integration)

Information
Class: AsyncResponse.Transports.PostgreSQL.PostgreSqlCorrelationIdExtractor
Assembly: AsyncResponse.Transports.PostgreSQL
File(s): /home/runner/work/AsyncResponse/AsyncResponse/src/Transports/AsyncResponse.Transports.PostgreSQL/PostgreSqlCorrelationIdExtractor.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 17
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
Extract(...)100%11100%

File(s)

/home/runner/work/AsyncResponse/AsyncResponse/src/Transports/AsyncResponse.Transports.PostgreSQL/PostgreSqlCorrelationIdExtractor.cs

#LineLine coverage
 1namespace AsyncResponse.Transports.PostgreSQL;
 2
 3/// <summary>
 4/// Extracts the AsyncResponse correlation id from PostgreSQL row metadata first, then from the JSON
 5/// response body via configured paths. The provider-named entry point for the shared
 6/// <see cref="DbCorrelationIdExtractor"/> — the same type name compiles into each database
 7/// transport assembly, so cross-assembly callers (tests via InternalsVisibleTo) need this
 8/// unambiguous name.
 9/// </summary>
 10internal static class PostgreSqlCorrelationIdExtractor
 11{
 12    public static string? Extract(
 13        IReadOnlyDictionary<string, string>? headers,
 14        string messageJson,
 15        PostgreSqlAsyncResponseTransportOptions options)
 316        => DbCorrelationIdExtractor.Extract(headers, messageJson, options);
 17}