execroot

package
v0.0.0-...-8da9acb Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package execroot provides execroot for test.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDirs

func AddDirs(t *testing.T, execRoot string, dirs []string)

AddDirs touches the given dirs under the given exec root.

func AddFileWithContent

func AddFileWithContent(t *testing.T, path string, content []byte)

AddFileWithContent creates the given file under the given exec root with its respective content.

func AddFiles

func AddFiles(t *testing.T, execRoot string, files []string)

AddFiles touches the given files under the given exec root.

func AddFilesWithContent

func AddFilesWithContent(t *testing.T, execRoot string, files map[string][]byte)

AddFilesWithContent creates the given files under the given exec root with their respective content.

func Setup

func Setup(t *testing.T, files []string) (string, func())

Setup creates a temporary exec root for testing and touches files with given paths under the exec root.

Types

This section is empty.

Jump to

Keyboard shortcuts

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