randomfixtures

package
v0.0.0-...-0fadc07 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeSequence

func MakeSequence(start byte, length int) []byte

MakeSequence returns a buffer containing a sequence of bytes of the given length. The first byte is equal to "start" and each consecutive byte is increased by one.

Types

type ConfigurableFixtures

type ConfigurableFixtures struct {
}

ConfigurableFixtures provides text fixtures for Random using a configurable sequence.

func (*ConfigurableFixtures) Set

Set injects a new Random that reads from the given buffer.

type DeterministicFixtures

type DeterministicFixtures struct {
}

DeterministicFixtures provides text fixtures for Random using a deterministic sequence.

func (*DeterministicFixtures) BeforeTest

BeforeTest implements the fixtures.BeforeTest interface.

type Fixtures

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

Fixtures provides test fixtures for Random using a real Random.

func (*Fixtures) AfterSuite

func (f *Fixtures) AfterSuite(ctx context.Context)

AfterSuite implements fixtures.AfterSuite.

func (*Fixtures) BeforeSuite

func (f *Fixtures) BeforeSuite(ctx context.Context) context.Context

BeforeSuite implements fixtures.BeforeSuite.

Jump to

Keyboard shortcuts

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