testutil

package
v1.10.10 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SingleRoot          = single
	TenRoots            = strings.Repeat(SingleRoot, 10)
	FiftyRoots          = strings.Repeat(SingleRoot, 50)
	HundredRoots        = strings.Repeat(SingleRoot, 100)
	FiveHundredsRoots   = strings.Repeat(SingleRoot, 500)
	ThousandRoots       = strings.Repeat(SingleRoot, 1000)
	ThreeThousandRoots  = strings.Repeat(SingleRoot, 3000)
	SixThousandRoots    = strings.Repeat(SingleRoot, 6000)
	TenThousandRoots    = strings.Repeat(SingleRoot, 10000)
	TwentyThousandRoots = strings.Repeat(SingleRoot, 20000)
)

Functions

func BaseBenchmark

func BaseBenchmark(b *testing.B, roots string, options ...gtree.Option)

func BenchmarkWithMassive added in v1.9.1

func BenchmarkWithMassive(b *testing.B, roots string)

func Prepare

func Prepare() *gtree.Node

func PrepareExistRoot

func PrepareExistRoot(t *testing.T) *gtree.Node

func PrepareInvalidNodeName

func PrepareInvalidNodeName() *gtree.Node

func PrepareMarkdownFile

func PrepareMarkdownFile(t *testing.T) *os.File

func PrepareMultiNode

func PrepareMultiNode() *gtree.Node

func PrepareNilNode

func PrepareNilNode() *gtree.Node

func PrepareNotRoot

func PrepareNotRoot() *gtree.Node

func PrepareSameNameChild

func PrepareSameNameChild() *gtree.Node

func Prepare_a

func Prepare_a() *gtree.Node

Types

This section is empty.

Jump to

Keyboard shortcuts

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