< Summary

Information
Class: Ice.Current
Assembly: Ice
File(s): /home/runner/work/ice/ice/csharp/src/Ice/Current.cs
Tag: 71_18251537082
Line coverage
100%
Covered lines: 10
Uncovered lines: 0
Coverable lines: 10
Total lines: 29
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 20
Total methods: 20
Method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
.ctor(...)100%210%
get_adapter()100%11100%
set_adapter(...)100%210%
get_con()100%11100%
set_con(...)100%210%
get_id()100%11100%
set_id(...)100%210%
get_facet()100%11100%
set_facet(...)100%210%
get_operation()100%11100%
set_operation(...)100%210%
get_mode()100%11100%
set_mode(...)100%210%
get_ctx()100%11100%
set_ctx(...)100%210%
get_requestId()100%11100%
set_requestId(...)100%210%
get_encoding()100%11100%
set_encoding(...)100%210%

File(s)

/home/runner/work/ice/ice/csharp/src/Ice/Current.cs

#LineLine coverage
 1// Copyright (c) ZeroC, Inc.
 2
 3#nullable enable
 4
 5namespace Ice;
 6
 7/// <summary>
 8/// Provides information about an incoming request being dispatched.
 9/// </summary>
 10/// <param name="adapter">The object adapter that received the request.</param>
 11/// <param name="con">The connection that received the request. It's null when the invocation and dispatch are
 12/// collocated.</param>
 13/// <param name="id">The identity of the target Ice object.</param>
 14/// <param name="facet">The facet of the target Ice object.</param>
 15/// <param name="operation">The name of the operation.</param>
 16/// <param name="mode">The operation mode (idempotent or not).</param>
 17/// <param name="ctx">The request context.</param>
 18/// <param name="requestId">The request ID. 0 means the request is a one-way request.</param>
 19/// <param name="encoding">The encoding of the request payload.</param>
 120public sealed record class Current(
 121    ObjectAdapter adapter,
 122    Connection? con,
 123    Identity id,
 124    string facet,
 125    string operation,
 126    OperationMode mode,
 127    Dictionary<string, string> ctx,
 128    int requestId,
 129    EncodingVersion encoding);