testutil

package
v0.0.0-...-90bb3ed Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 4 Imported by: 0

README

Testing util

import "github.com/flexi-cache/pkg/testutil"

This package is designed for testing, thus should only be used in testing.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithTempFile

func WithTempFile(t *testing.T, content string, f func(filename string))

WithTempFile creates a tempfile with given content then calls f()

The file will be deleted after calling f()

Types

This section is empty.

Jump to

Keyboard shortcuts

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