testutils

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCommand added in v0.0.5

func RunCommand(t *testing.T, dir string, name string, args ...string) error

RunCommand executes any command and returns the result

func RunGitCommand

func RunGitCommand(t *testing.T, dir string, args ...string) error

RunGitCommand runs a git command in the specified directory

func TestConfig

func TestConfig(t *testing.T, content string) (string, func())

TestConfig creates a temporary config file for testing

func TestDir

func TestDir(t *testing.T) (string, func())

TestDir creates a temporary directory for testing

func TestFile

func TestFile(t *testing.T, content string) (string, func())

TestFile creates a temporary file with content for testing

func TestGitRepo

func TestGitRepo(t *testing.T) (string, func())

TestGitRepo creates a temporary git repository for testing

Types

This section is empty.

Jump to

Keyboard shortcuts

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