testfiles

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package testfiles provides utility functions and types for working with test files in Go tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(t *testing.T, srcDir string, destDir string)

CopyDir is a test helper function to copy all files from the source directory to destination directory. The source .git directory is skipped so temporary test repos do not inherit nested git metadata.

func CopyFile

func CopyFile(t *testing.T, srcPath string, destDir string)

CopyFile copies a single file from the specified source path to the specified destination directory.

func CreateFile

func CreateFile(t *testing.T, filePath, content string)

CreateFile creates a file with the specified content at the given filePath.

Types

This section is empty.

Jump to

Keyboard shortcuts

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