< Summary

Information
Class: IceRpc.IncomingFrame
Assembly: IceRpc
File(s): /home/runner/work/icerpc-csharp/icerpc-csharp/src/IceRpc/IncomingFrame.cs
Tag: 1321_24790053727
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 35
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 4
Fully covered methods: 4
Total methods: 4
Method coverage: 100%
Full method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_ConnectionContext()100%11100%
get_Payload()100%11100%
get_Protocol()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/icerpc-csharp/icerpc-csharp/src/IceRpc/IncomingFrame.cs

#LineLine coverage
 1// Copyright (c) ZeroC, Inc.
 2
 3using System.IO.Pipelines;
 4
 5namespace IceRpc;
 6
 7/// <summary>Represents the base class for incoming frames.</summary>
 8public class IncomingFrame
 9{
 10    /// <summary>Gets or sets the connection context.</summary>
 11    /// <value>The <see cref="IConnectionContext"/> of this frame.</value>
 606512    public IConnectionContext ConnectionContext { get; set; }
 13
 14    /// <summary>Gets or sets the payload of this frame.</summary>
 15    /// <value>The payload of this frame. Defaults to a <see cref="PipeReader" /> that returns an empty sequence.
 16    /// </value>
 17    /// <remarks>IceRPC completes the payload <see cref="PipeReader" /> with the <see
 18    /// cref="PipeReader.Complete(Exception?)" /> method. It never calls <see
 19    /// cref="PipeReader.CompleteAsync(Exception?)" />. The implementation of <see
 20    /// cref="PipeReader.Complete(Exception?)" /> should not block.</remarks>
 1834921    public PipeReader Payload { get; set; } = EmptyPipeReader.Instance;
 22
 23    /// <summary>Gets the protocol of this frame.</summary>
 24    /// <value>The <see cref="IceRpc.Protocol" /> of this frame.</value>
 442825    public Protocol Protocol { get; }
 26
 27    /// <summary>Constructs an incoming frame.</summary>
 28    /// <param name="protocol">The protocol of this frame.</param>
 29    /// <param name="connectionContext">The connection context of the connection that received this frame.</param>
 599930    private protected IncomingFrame(Protocol protocol, IConnectionContext connectionContext)
 599931    {
 599932        ConnectionContext = connectionContext;
 599933        Protocol = protocol;
 599934    }
 35}