< Summary

Information
Class: Ice.SSL.ConnectorI
Assembly: Ice
File(s): /home/runner/work/ice/ice/csharp/src/Ice/SSL/ConnectorI.cs
Tag: 71_18251537082
Line coverage
90%
Covered lines: 18
Uncovered lines: 2
Coverable lines: 20
Total lines: 48
Line coverage: 90%
Branch coverage
75%
Covered branches: 3
Total branches: 4
Branch coverage: 75%
Method coverage
83%
Covered methods: 5
Total methods: 6
Method coverage: 83.3%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
connect()100%11100%
type()100%210%
Equals(...)75%4.07483.33%
GetHashCode()100%11100%
ToString()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/ice/ice/csharp/src/Ice/SSL/ConnectorI.cs

#LineLine coverage
 1// Copyright (c) ZeroC, Inc.
 2
 3namespace Ice.SSL;
 4
 5internal sealed class ConnectorI : Ice.Internal.Connector
 6{
 7    public Ice.Internal.Transceiver connect() =>
 18        new TransceiverI(
 19            _instance,
 110            _delegate.connect(),
 111            _host,
 112            incoming: false,
 113            serverAuthenticationOptions: null);
 14
 015    public short type() => _delegate.type();
 16
 17    public override bool Equals(object obj)
 18    {
 119        if (obj is not ConnectorI)
 20        {
 021            return false;
 22        }
 23
 124        if (this == obj)
 25        {
 126            return true;
 27        }
 28
 129        var p = (ConnectorI)obj;
 130        return _delegate.Equals(p._delegate);
 31    }
 32
 133    public override int GetHashCode() => _delegate.GetHashCode();
 34
 135    public override string ToString() => _delegate.ToString();
 36
 37    // Only for use by EndpointI.
 138    internal ConnectorI(Instance instance, Ice.Internal.Connector del, string host)
 39    {
 140        _instance = instance;
 141        _delegate = del;
 142        _host = host;
 143    }
 44
 45    private readonly Ice.Internal.Connector _delegate;
 46    private readonly string _host;
 47    private readonly Instance _instance;
 48}