Help us shape the future of Go! Take the 2026 Go Developer Survey

lint

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Publisher

func Publisher(input *PublisherInput)

Publisher lints publishers.

func Subscriber

func Subscriber(input *SubscriberInput)

Subscriber lints subscribers.

Types

type PublisherInput

type PublisherInput struct {
	Subject  bps.Publisher
	Messages func(string, int) ([]*bps.PubMessage, error)
	Setup    func(topics ...string) error
	Teardown func(topics ...string) error
}

PublisherInput for the shared test.

type SubscriberInput

type SubscriberInput struct {
	// Subject should return a subject to be tested, with given topic/messages seeded.
	// Caller should handle all the subject teardown/cleanup.
	// Topics are guaranteed to be prefixed with "bps-unittest-".
	Subject func(topic string, messages []bps.SubMessage) bps.Subscriber
}

SubscriberInput for the shared test.

Jump to

Keyboard shortcuts

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