< Summary

Information
Class: IceRpc.Features.DispatchInformationFeature
Assembly: IceRpc
File(s): /home/runner/work/icerpc-csharp/icerpc-csharp/src/IceRpc/Features/DispatchInformationFeature.cs
Tag: 275_13775359185
Line coverage
73%
Covered lines: 11
Uncovered lines: 4
Coverable lines: 15
Total lines: 37
Line coverage: 73.3%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
42%
Covered methods: 3
Total methods: 7
Method coverage: 42.8%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_ConnectionContext()100%210%
get_Fragment()100%210%
get_IsOneway()100%210%
get_Operation()100%210%
get_Path()100%11100%
get_Protocol()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/icerpc-csharp/icerpc-csharp/src/IceRpc/Features/DispatchInformationFeature.cs

#LineLine coverage
 1// Copyright (c) ZeroC, Inc.
 2
 3namespace IceRpc.Features;
 4
 5/// <summary>Default implementation of <see cref="IDispatchInformationFeature" />.</summary>
 6public sealed class DispatchInformationFeature : IDispatchInformationFeature
 7{
 8    /// <inheritdoc/>
 09    public IConnectionContext ConnectionContext { get; }
 10
 11    /// <inheritdoc/>
 012    public string Fragment { get; }
 13
 14    /// <inheritdoc/>
 015    public bool IsOneway { get; }
 16
 17    /// <inheritdoc/>
 018    public string Operation { get; }
 19
 20    /// <inheritdoc/>
 821    public string Path { get; }
 22
 23    /// <inheritdoc/>
 824    public Protocol Protocol { get; }
 25
 26    /// <summary>Constructs a dispatch information feature using an incoming request.</summary>
 27    /// <param name="request">The incoming request.</param>
 5628    public DispatchInformationFeature(IncomingRequest request)
 5629    {
 5630        ConnectionContext = request.ConnectionContext;
 5631        Fragment = request.Fragment;
 5632        IsOneway = request.IsOneway;
 5633        Operation = request.Operation;
 5634        Path = request.Path;
 5635        Protocol = request.Protocol;
 5636    }
 37}