< Summary

Information
Class: Renci.SshNet.Sftp.SftpListDirectoryAsyncResult
Assembly: Renci.SshNet
File(s): \home\appveyor\projects\ssh-net\src\Renci.SshNet\Sftp\SftpListDirectoryAsyncResult.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 37
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_FilesRead()100%1100%
.ctor(...)100%1100%
Update(...)100%1100%

File(s)

\home\appveyor\projects\ssh-net\src\Renci.SshNet\Sftp\SftpListDirectoryAsyncResult.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3
 4using Renci.SshNet.Common;
 5
 6namespace Renci.SshNet.Sftp
 7{
 8    /// <summary>
 9    /// Encapsulates the results of an asynchronous directory list operation.
 10    /// </summary>
 11    public class SftpListDirectoryAsyncResult : AsyncResult<IEnumerable<ISftpFile>>
 12    {
 13        /// <summary>
 14        /// Gets the number of files read so far.
 15        /// </summary>
 316        public int FilesRead { get; private set; }
 17
 18        /// <summary>
 19        /// Initializes a new instance of the <see cref="SftpListDirectoryAsyncResult"/> class.
 20        /// </summary>
 21        /// <param name="asyncCallback">The async callback.</param>
 22        /// <param name="state">The state.</param>
 23        public SftpListDirectoryAsyncResult(AsyncCallback asyncCallback, object state)
 524            : base(asyncCallback, state)
 525        {
 526        }
 27
 28        /// <summary>
 29        /// Updates asynchronous operation status information.
 30        /// </summary>
 31        /// <param name="filesRead">The files read.</param>
 32        internal void Update(int filesRead)
 333        {
 334            FilesRead = filesRead;
 335        }
 36    }
 37}