shelltestutils

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package shelltestutils contains test utilities for working with the shell service like test file system directories and comparison tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirectoryContentsEqual

func DirectoryContentsEqual(leftRoot, rightRoot string) error

DirectoryContentsEqual checks if the directory contents on the left and right are equal, excluding metadata (atime, mtime, mode, etc.)

Types

type TestFileSystemInfo

type TestFileSystemInfo struct {
	Root                 string
	SingleFileNested     string
	SingleFileNestedData []byte
	InnerDir             string
}

TestFileSystemInfo contains information about where the file system is and some various file paths/details.

func SetupTestFileSystem

func SetupTestFileSystem(t *testing.T, prefixData ...string) TestFileSystemInfo

SetupTestFileSystem sets up and returns a test file system for playing around with files. It contains a nested symlinked directory.

Jump to

Keyboard shortcuts

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