vfstest

package
v2.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package vfstest provides an in-process SFTP-backed vfs.RemoteFS for tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRemote

func NewRemote(t testing.TB) *vfs.RemoteFS

NewRemote returns a RemoteFS backed by an in-process SFTP server that serves the local file system. It is meant for tests in other packages.

The server only understands POSIX paths. On Windows a test path such as C:\Users\... is resolved relative to the package directory, so tests would write into the source tree; they are skipped there instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址