testutil

package
v0.0.0-...-5ef499a Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockPlayer

func MockPlayer(tx *world.Tx, name string) *player.Player

func MockWorld

func MockWorld(f func(tx *world.Tx))

Types

type Messenger

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

func NewMessenger

func NewMessenger(t *testing.T) *Messenger

func (*Messenger) EXPECT

func (m *Messenger) EXPECT(expectedMessages ...string)

func (*Messenger) Message

func (m *Messenger) Message(_ *player.Player, s string)

type Subscriber

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

func NewSubscriber

func NewSubscriber(t *testing.T) *Subscriber

func (*Subscriber) EXPECT

func (s *Subscriber) EXPECT(expectedMessages ...string)

func (*Subscriber) Message

func (s *Subscriber) Message(a ...any)

func (*Subscriber) UUID

func (s *Subscriber) UUID() uuid.UUID

Jump to

Keyboard shortcuts

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