morerequire

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package morerequire includes more require functions than "github.com/stretchr/testify/require" Do not add dependencies on any main code as it will cause cycles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequireChdir added in v1.0.0

func RequireChdir(t *testing.T, dir string) func()

RequireChdir changes the working directory reverts it on the returned function

func RequireSetMtime

func RequireSetMtime(t *testing.T, dir, date string)

RequireSetMtime sets the mtime of the dir given a string formatted date. Ex "2006-01-02"

Types

This section is empty.

Jump to

Keyboard shortcuts

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