qtest

package module
v0.16.1 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"
)
View Source
const Version = "qtest/v0.16.1"

Variables

This section is empty.

Functions

func NewLogger

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

type EventNote swarm.Event[*Note]

func (EventNote) HKT1

func (EventNote) HKT1(swarm.EventType)

func (EventNote) HKT2

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