< Summary

Information
Class: Ice.Internal.FixedRequestHandler
Assembly: Ice
File(s): /home/runner/work/ice/ice/csharp/src/Ice/Internal/FixedRequestHandler.cs
Tag: 71_18251537082
Line coverage
77%
Covered lines: 7
Uncovered lines: 2
Coverable lines: 9
Total lines: 29
Line coverage: 77.7%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
50%
Covered methods: 2
Total methods: 4
Method coverage: 50%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
sendAsyncRequest(...)100%11100%
asyncRequestCanceled(...)100%210%
getConnection()100%210%
.ctor(...)100%11100%

File(s)

/home/runner/work/ice/ice/csharp/src/Ice/Internal/FixedRequestHandler.cs

#LineLine coverage
 1// Copyright (c) ZeroC, Inc.
 2
 3#nullable enable
 4
 5namespace Ice.Internal;
 6
 7internal class FixedRequestHandler : RequestHandler
 8{
 9    private readonly Reference _reference;
 10    private readonly bool _response;
 11    private readonly ConnectionI _connection;
 12    private readonly bool _compress;
 13
 14    public int sendAsyncRequest(ProxyOutgoingAsyncBase outAsync) =>
 115        outAsync.invokeRemote(_connection, _compress, _response);
 16
 17    public void asyncRequestCanceled(OutgoingAsyncBase outAsync, LocalException ex) =>
 018        _connection.asyncRequestCanceled(outAsync, ex);
 19
 020    public ConnectionI? getConnection() => _connection;
 21
 122    internal FixedRequestHandler(Reference reference, ConnectionI connection, bool compress)
 23    {
 124        _reference = reference;
 125        _response = _reference.isTwoway;
 126        _connection = connection;
 127        _compress = compress;
 128    }
 29}