< Summary

Information
Class: Renci.SshNet.RemotePathNoneTransformation
Assembly: Renci.SshNet
File(s): \home\appveyor\projects\ssh-net\src\Renci.SshNet\RemotePathNoneTransformation.cs
Line coverage
66%
Covered lines: 4
Uncovered lines: 2
Coverable lines: 6
Total lines: 32
Line coverage: 66.6%
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
Transform(...)50%266.66%

File(s)

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

#LineLine coverage
 1using System;
 2
 3namespace Renci.SshNet
 4{
 5    /// <summary>
 6    /// Performs no transformation.
 7    /// </summary>
 8    internal sealed class RemotePathNoneTransformation : IRemotePathTransformation
 9    {
 10        /// <summary>
 11        /// Returns the specified path without applying a transformation.
 12        /// </summary>
 13        /// <param name="path">The path to transform.</param>
 14        /// <returns>
 15        /// The specified path as is.
 16        /// </returns>
 17        /// <exception cref="ArgumentNullException"><paramref name="path"/> is <see langword="null"/>.</exception>
 18        /// <remarks>
 19        /// This transformation is recommended for servers that do not require any quoting to preserve the
 20        /// literal value of metacharacters, or when paths are guaranteed to never contain any such characters.
 21        /// </remarks>
 22        public string Transform(string path)
 2523        {
 2524            if (path is null)
 025            {
 026                throw new ArgumentNullException(nameof(path));
 27            }
 28
 2529            return path;
 2530        }
 31    }
 32}

Methods/Properties

Transform(System.String)