tests

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FuncOpen        = "Open"
	FuncOpenErr     = "OpenErr"
	FuncCreate      = "Create"
	FuncCreateErr   = "CreateErr"
	FuncMkdir       = "Mkdir"
	FuncMkdirErr    = "MkdirErr"
	FuncMkdirAll    = "MkdirAll"
	FuncRemove      = "Remove"
	FuncRemoveErr   = "RemoveErr"
	FuncRemoveAll   = "RemoveAll"
	FuncRename      = "Rename"
	FuncRenameErr   = "RenameErr"
	FuncSub         = "Sub"
	FuncSubErr      = "SubErr"
	FuncStat        = "Stat"
	FuncStatErr     = "StatErr"
	FuncExist       = "Exist"
	FuncExistFalse  = "ExistFalse"
	FuncIsFile      = "IsFile"
	FuncIsFileFalse = "IsFileFalse"
	FuncIsDir       = "IsDir"
	FuncIsDirFalse  = "IsDirFalse"
)

Variables

This section is empty.

Functions

func TestDriver

func TestDriver(t *testing.T, dsn string, eventRegisters ...EventRegisterFunc)

Types

type EventDispatcher

type EventDispatcher struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*EventDispatcher) Listener

func (e *EventDispatcher) Listener(funcName string, eventFunc EventHandlerFunc)

type EventHandlerFunc

type EventHandlerFunc func(path string) error

type EventRegisterFunc

type EventRegisterFunc func(e *EventDispatcher)

Jump to

Keyboard shortcuts

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