Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var RequiresCanManageOwnership = ConveyRequirement{"have caps for managing file ownership", caps.Scan().CanManageOwnership}
Require that the test process is running with enough capabilities to be able to manage file ownership.
var RequiresCanMountAny = ConveyRequirement{"have caps for any mounting", caps.Scan().CanMountAny}
Require that the test process is running with enough capabilities to be able to make any/all mounts.
var RequiresCanMountBind = ConveyRequirement{"have caps for mounting binds", caps.Scan().CanMountBind}
Require that the test process is running with enough capabilities to be able to make bind mounts.
var RequiresLongRun = ConveyRequirement{"run long tests", func() bool { return !testing.Short() }}
Require that the tests are not running with the "short" flag enabled.
Functions ¶
func Requires ¶
Decorates a GoConvey test to check a set of `ConveyRequirement`s, returning a dummy test func that skips (with an explanation!) if any of the requirements are unsatisfied; if all is well, it yields the real test function unchanged. Provide the `...ConveyRequirement`s first, followed by the `func()` (like the argument order in `Convey`).
func WithTmpdir ¶
func WithTmpdir(fn func(tmpDir fs.AbsolutePath))
Types ¶
type ConveyRequirement ¶
func RequiresEnvBlank ¶
func RequiresEnvBlank(key string) ConveyRequirement
Require than an env var *not* be set.
We use this for things like `RequiresEnvBlank(RIO_TEST_SKIP_AUFS)`.