cache

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDir

func DeleteDir(t *testing.T, path string)

DeleteDir deleted the temporary image cache that was created for testing purposes. DeleteDir will fail the test if an error occurs during its execution.

func MakeDir

func MakeDir(t *testing.T, basedir string) string

MakeDir creates a new temporary image cache directory in the directory basedir and returns the path of the new directory. If basedir is an empty string, MakeDir uses the default directory for temporary files (see os.TempDir). It is the caller's responsibility to call cache.InitHdl after calling MakeDir() in order to create a valid cache handle. It is also the caller's responsibility to remove the directory when no longer needed, which can be accomplished by calling DeleteDir. It's the caller's responsibility to create basedir before calling it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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