tests

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTestDoubleNestedGroupPath

func RunTestDoubleNestedGroupPath(t *testing.T, r Resources)

func RunTestEntryPasswordTitleFuncs

func RunTestEntryPasswordTitleFuncs(t *testing.T, r Resources)

func RunTestEntryTimeFuncs

func RunTestEntryTimeFuncs(t *testing.T, r Resources)

func RunTestFormatTime

func RunTestFormatTime(e types.Entry) (failures string)

This tests the FormatTime utility function via the creation time field output of an entry

func RunTestGroupEntryFuncs

func RunTestGroupEntryFuncs(t *testing.T, r Resources)

func RunTestGroupParentFunctions

func RunTestGroupParentFunctions(t *testing.T, r Resources)

func RunTestGroupUniqueness

func RunTestGroupUniqueness(t *testing.T, r Resources)

func RunTestIsRoot

func RunTestIsRoot(t *testing.T, r Resources)

func RunTestNestedSubGroupPath

func RunTestNestedSubGroupPath(t *testing.T, r Resources)

func RunTestNoParent

func RunTestNoParent(t *testing.T, r Resources)

func RunTestOutput

func RunTestOutput(t *testing.T, e types.Entry)

func RunTestRegularPath

func RunTestRegularPath(t *testing.T, r Resources)

func RunTestRemoveSubgroup

func RunTestRemoveSubgroup(t *testing.T, r Resources)

func RunTestSearchInNestedSubgroup

func RunTestSearchInNestedSubgroup(t *testing.T, r Resources)

func RunTestSubgroupSearch

func RunTestSubgroupSearch(t *testing.T, r Resources)

Types

type Resources

type Resources struct {
	Db    t.Database
	Entry t.Entry
	Group t.Group
	// BlankEntry and BlankGroup are empty resources for testing freshly
	// allocated structs
	BlankEntry t.Entry
	BlankGroup t.Group
}

Jump to

Keyboard shortcuts

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