pubsubtest

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package pubsubtest contains helper functions for testing pubsub.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunPubSubTest

func RunPubSubTest(t *testing.T, topic pubsub.Topic[User])

RunPubSubTest runs the test suite for a [PubSub] implementation.

Types

type User

type User struct {
	Name string `json:"name"`
	Age  int    `json:"age"`
}

func (User) EventID

func (u User) EventID() string

Jump to

Keyboard shortcuts

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