< Summary

Information
Class: Renci.SshNet.Messages.Connection.SessionChannelOpenInfo
Assembly: Renci.SshNet
File(s): \home\appveyor\projects\ssh-net\src\Renci.SshNet\Messages\Connection\ChannelOpen\SessionChannelOpenInfo.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 43
Line coverage: 100%
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_ChannelType()100%1100%
.ctor()100%1100%
.ctor(...)100%1100%

File(s)

\home\appveyor\projects\ssh-net\src\Renci.SshNet\Messages\Connection\ChannelOpen\SessionChannelOpenInfo.cs

#LineLine coverage
 1using System;
 2
 3namespace Renci.SshNet.Messages.Connection
 4{
 5    /// <summary>
 6    /// Used to open "session" channel type.
 7    /// </summary>
 8    internal sealed class SessionChannelOpenInfo : ChannelOpenInfo
 9    {
 10        /// <summary>
 11        /// Specifies channel open type.
 12        /// </summary>
 13        public const string Name = "session";
 14
 15        /// <summary>
 16        /// Gets the type of the channel to open.
 17        /// </summary>
 18        /// <value>
 19        /// The type of the channel to open.
 20        /// </value>
 21        public override string ChannelType
 22        {
 604523            get { return Name; }
 24        }
 25
 26        /// <summary>
 27        /// Initializes a new instance of the <see cref="SessionChannelOpenInfo"/> class.
 28        /// </summary>
 200629        public SessionChannelOpenInfo()
 200630        {
 200631        }
 32
 33        /// <summary>
 34        /// Initializes a new instance of the <see cref="SessionChannelOpenInfo"/> class from the
 35        /// specified data.
 36        /// </summary>
 37        /// <exception cref="ArgumentNullException"><paramref name="data"/> is <see langword="null"/>.</exception>
 338        public SessionChannelOpenInfo(byte[] data)
 339        {
 340            Load(data);
 341        }
 42    }
 43}