Version: v0.0.0-...-0fadc07 Latest Latest

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




This section is empty.


This section is empty.


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.


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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL