< Summary

Information
Class: Renci.SshNet.Common.ChannelRequestEventArgs
Assembly: Renci.SshNet
File(s): \home\appveyor\projects\ssh-net\src\Renci.SshNet\Common\ChannelRequestEventArgs.cs
Line coverage
75%
Covered lines: 6
Uncovered lines: 2
Coverable lines: 8
Total lines: 35
Line coverage: 75%
Branch coverage
50%
Covered branches: 1
Total branches: 2
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
.ctor(...)50%271.42%
get_Info()100%1100%

File(s)

\home\appveyor\projects\ssh-net\src\Renci.SshNet\Common\ChannelRequestEventArgs.cs

#LineLine coverage
 1using System;
 2
 3using Renci.SshNet.Messages.Connection;
 4
 5namespace Renci.SshNet.Common
 6{
 7    /// <summary>
 8    /// Provides data for <see cref="Channels.Channel.RequestReceived"/> event.
 9    /// </summary>
 10    internal sealed class ChannelRequestEventArgs : EventArgs
 11    {
 12        /// <summary>
 13        /// Initializes a new instance of the <see cref="ChannelRequestEventArgs"/> class.
 14        /// </summary>
 15        /// <param name="info">Request information.</param>
 16        /// <exception cref="ArgumentNullException"><paramref name="info"/> is <see langword="null"/>.</exception>
 73917        public ChannelRequestEventArgs(RequestInfo info)
 73918        {
 73919            if (info is null)
 020            {
 021                throw new ArgumentNullException(nameof(info));
 22            }
 23
 73924            Info = info;
 73925        }
 26
 27        /// <summary>
 28        /// Gets the request information.
 29        /// </summary>
 30        /// <value>
 31        /// The request information.
 32        /// </value>
 73933        public RequestInfo Info { get; }
 34    }
 35}