< Summary

Information
Class: Renci.SshNet.Compression.ZlibOpenSsh
Assembly: Renci.SshNet
File(s): \home\appveyor\projects\ssh-net\src\Renci.SshNet\Compression\ZlibOpenSsh.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 9
Coverable lines: 9
Total lines: 35
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_Name()100%10%
Init(...)100%10%
Session_UserAuthenticationSuccessReceived(...)100%10%

File(s)

\home\appveyor\projects\ssh-net\src\Renci.SshNet\Compression\ZlibOpenSsh.cs

#LineLine coverage
 1using Renci.SshNet.Messages.Authentication;
 2
 3namespace Renci.SshNet.Compression
 4{
 5    /// <summary>
 6    /// Represents "zlib@openssh.org" compression implementation.
 7    /// </summary>
 8    public class ZlibOpenSsh : Compressor
 9    {
 10        /// <summary>
 11        /// Gets algorithm name.
 12        /// </summary>
 13        public override string Name
 14        {
 015            get { return "zlib@openssh.org"; }
 16        }
 17
 18        /// <summary>
 19        /// Initializes the algorithm.
 20        /// </summary>
 21        /// <param name="session">The session.</param>
 22        public override void Init(Session session)
 023        {
 024            base.Init(session);
 25
 026            session.UserAuthenticationSuccessReceived += Session_UserAuthenticationSuccessReceived;
 027        }
 28
 29        private void Session_UserAuthenticationSuccessReceived(object sender, MessageEventArgs<SuccessMessage> e)
 030        {
 031            IsActive = true;
 032            Session.UserAuthenticationSuccessReceived -= Session_UserAuthenticationSuccessReceived;
 033        }
 34    }
 35}