testumask

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package testumask sets the process umask for the length of a test.

The umask is process-wide, so a test that calls Set must not call t.Parallel(). Go pauses every parallel test until the sequential top-level tests have finished, so a sequential top-level test sees no other test creating files while it runs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(t testing.TB, mask int)

Set changes the process umask to mask and restores the previous value when the test ends.

Types

This section is empty.

Jump to

Keyboard shortcuts

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