test

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package test creates managers for tests, of temporary databases, which are closed, and deleted, when the tests end.

Index

Constants

View Source
const (
	// Database is the name of the temporary database
	Database = "filesearch.db"
)

Variables

This section is empty.

Functions

func New

func New(t testing.TB, opts ...filesearch.Opt) *filesearch.Manager

New returns a manager, of a database, in a temporary folder, with the options, which is closed, and deleted, with its folder, when the test ends. It fails the test when it can't be created.

func Path

func Path(t testing.TB) string

Path returns the path of a database, in a temporary folder, which is deleted, with the folder, 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