boltdbtest

package
v0.0.0-...-365054f Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package boltdbtest contains the utitilies needed for boltdb testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupDB

func CleanupDB(t *testing.T, fileName string, db *storm.DB)

CleanupDB removes the provided file after stopping the given db

func CleanupTempFile

func CleanupTempFile(t *testing.T, fileName string)

CleanupTempFile removes the given temp file

func CreateDB

func CreateDB(t *testing.T) (string, *storm.DB)

CreateDB creates a new boltdb instance with a temp file and returns the underlying file and database

func CreateTempDir

func CreateTempDir(t *testing.T) string

CreateTempDir creates a temporary directory

func CreateTempFile

func CreateTempFile(t *testing.T) string

CreateTempFile creates a temporary file and returns its path

func RemoveTempDir

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

RemoveTempDir removes a temporary directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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