splittest

package
v0.102.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateBytes

func GenerateBytes(length int) []byte

func New added in v0.86.0

func New(splitFunc bufio.SplitFunc, input []byte, steps ...Step) func(*testing.T)

func ScanLinesStrict added in v0.87.0

func ScanLinesStrict(data []byte, atEOF bool) (advance int, token []byte, err error)

ScanLinesStrict behaves like bufio.ScanLines except EOF is not considered a line ending.

Types

type Step added in v0.86.0

type Step struct {
	// contains filtered or unexported fields
}

func Eventually added in v0.87.0

func Eventually(step Step, maxTime time.Duration, tick time.Duration) Step

func ExpectAdvanceNil added in v0.86.0

func ExpectAdvanceNil(expectAdvance int) Step

func ExpectAdvanceToken added in v0.86.0

func ExpectAdvanceToken(expectAdvance int, expectToken string) Step

func ExpectError added in v0.86.0

func ExpectError(expectErr string) Step

func ExpectReadMore added in v0.87.0

func ExpectReadMore() Step

func ExpectToken added in v0.86.0

func ExpectToken(expectToken string) Step

Jump to

Keyboard shortcuts

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