tests

package
v0.0.0-...-97d2b70 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomString

func RandomString(length int) string

func RandomStringWithCharset

func RandomStringWithCharset(length int, charset string) string

Types

type PathsGenerator

type PathsGenerator struct {
	WatchEntireFilesystem bool
	OutOfScope            bool
	Depth                 int
	Breadth               int
	NumOfFiles            int
	NamesLength           int
	Root                  string
	// contains filtered or unexported fields
}

PathsGenerator - Paths generator used for the benchmark

func (*PathsGenerator) Close

func (pg *PathsGenerator) Close() error

Close - Delete all generated files and folders

func (*PathsGenerator) CreateFiles

func (pg *PathsGenerator) CreateFiles() error

func (*PathsGenerator) CreateFolders

func (pg *PathsGenerator) CreateFolders() error

func (*PathsGenerator) GetRandomFile

func (pg *PathsGenerator) GetRandomFile() string

func (*PathsGenerator) GetWatchedPaths

func (pg *PathsGenerator) GetWatchedPaths() []string

func (*PathsGenerator) Init

func (pg *PathsGenerator) Init() error

Jump to

Keyboard shortcuts

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