qtest

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Category = "Note"
	Message  = "{\"some\":\"message\"}"
	Receipt  = "0x123456789abcdef"

	EventCategory = "qtest.EventNote"
)

Variables

This section is empty.

Functions

func NewLogger added in v0.13.0

func NewLogger()

Config logger for debug/testing purposes

func TestDequeueBytes

func TestDequeueBytes(t *testing.T, factory dequeue)

func TestDequeueEvent

func TestDequeueEvent(t *testing.T, factory dequeue)

func TestDequeueTyped

func TestDequeueTyped(t *testing.T, factory dequeue)

func TestEnqueueBytes

func TestEnqueueBytes(t *testing.T, factory enqueue)

func TestEnqueueEvent

func TestEnqueueEvent(t *testing.T, factory enqueue)

func TestEnqueueTyped

func TestEnqueueTyped(t *testing.T, factory enqueue)

Types

type EventNote added in v0.13.0

type EventNote swarm.Event[*Note]

func (EventNote) HKT1 added in v0.13.0

func (EventNote) HKT1(swarm.EventType)

func (EventNote) HKT2 added in v0.13.0

func (EventNote) HKT2(*Note)

type Note

type Note struct {
	Some string `json:"some"`
}

type User

type User struct {
	Some string `json:"some"`
}

Jump to

Keyboard shortcuts

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