fakes

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package fakes provides mock implementations to be used in testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeRandomGenerator

type FakeRandomGenerator struct {
	Ret []byte
	Err error
}

FakeRandomGenerator can be used to mock a RandomGenerator.

func (FakeRandomGenerator) Generate

func (generator FakeRandomGenerator) Generate(length int) ([]byte, error)

Generate returns the mocked Generate response.

Jump to

Keyboard shortcuts

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