fixtures

package
v0.0.0-...-27b9057 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Event

func Event(kind domain.EventKind, tags []domain.EventTag, content string) domain.Event

func RequireEqualEventSlices

func RequireEqualEventSlices(tb testing.TB, a, b []domain.Event)

func SomeBytesOfLen

func SomeBytesOfLen(l int) []byte

func SomeDuration

func SomeDuration() time.Duration

func SomeError

func SomeError() error

func SomeEvent

func SomeEvent() domain.Event

func SomeEventID

func SomeEventID() domain.EventId

func SomeEventKind

func SomeEventKind() domain.EventKind

func SomeEventWithAuthor

func SomeEventWithAuthor(sk string) domain.Event

func SomeFile

func SomeFile(t testing.TB) string

func SomeHexBytesOfLen

func SomeHexBytesOfLen(l int) string

func SomeKeyPair

func SomeKeyPair() (publicKey domain.PublicKey, secretKeyHex string)

func SomeMaybeRelayAddress

func SomeMaybeRelayAddress() domain.MaybeRelayAddress

func SomePublicKey

func SomePublicKey() domain.PublicKey

func SomeRelayAddress

func SomeRelayAddress() domain.RelayAddress

func SomeString

func SomeString() string

func SomeTime

func SomeTime() time.Time

func SomeTimeWindow

func SomeTimeWindow() downloader.TimeWindow

func TestContext

func TestContext(t testing.TB) context.Context

func TestLogger

func TestLogger(t testing.TB) logging.Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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