tests

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package tests provides helpers for use in table-driven tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SafeMkdirAll

func SafeMkdirAll(t *testing.T, path string, perm os.FileMode)

SafeMkdirAll calls t.Fatal if os.MkdirAll fails.

func SafeWriteFile

func SafeWriteFile(t *testing.T, path string, data []byte, perm os.FileMode)

SafeWriteFile calls t.Fatal if os.WriteFile fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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