testutils

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: LGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnotherTestCommand

type AnotherTestCommand struct {
	Value int `json:"value"`
}

AnotherTestCommand is another command type for testing multiple command types.

func (AnotherTestCommand) Name

func (AnotherTestCommand) Name() string

type CustomPayload

type CustomPayload struct {
	Custom bool `json:"custom"`
}

CustomPayload is a payload with boolean field for testing custom event kinds.

type SimpleCommand

type SimpleCommand struct {
	CommandName string `json:"name"`
	Payload     string `json:"payload"`
}

SimpleCommand is a basic command with name and payload for marshal testing.

func NewSimpleCommand

func NewSimpleCommand(name, payload string) SimpleCommand

NewSimpleCommand creates a SimpleCommand with the given name and payload.

func (SimpleCommand) Name

func (c SimpleCommand) Name() string

type SimpleEvent

type SimpleEvent struct {
	EventName string `json:"name"`
	Payload   string `json:"payload"`
}

SimpleEvent is a basic event with name and payload for marshal testing.

func NewSimpleEvent

func NewSimpleEvent(name, payload string) SimpleEvent

NewSimpleEvent creates a SimpleEvent with the given name and payload.

func (SimpleEvent) Name

func (e SimpleEvent) Name() string

type TestCommand

type TestCommand struct {
	Value int `json:"value"`
}

TestCommand is a simple command for testing purposes.

func (TestCommand) Name

func (TestCommand) Name() string

type TestPayload

type TestPayload struct {
	Key    string `json:"key"`
	Number int    `json:"number"`
}

TestPayload is a basic struct payload for raw event testing.

Jump to

Keyboard shortcuts

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