barista.run: barista.run/testing/notifier Index | Files

package notifier

import "barista.run/testing/notifier"

Package notifier provides assertions that notifier channels (<-chan struct{}) received or did not receive a signal.

Index

Package Files

notifier.go

func AssertClosed Uses

func AssertClosed(t *testing.T, ch <-chan struct{}, formatAndArgs ...interface{})

AssertClosed asserts that the given channel was closed.

func AssertNoUpdate Uses

func AssertNoUpdate(t *testing.T, ch <-chan struct{}, formatAndArgs ...interface{})

AssertNoUpdate asserts that the given channel was not notified or closed.

func AssertNotified Uses

func AssertNotified(t *testing.T, ch <-chan struct{}, formatAndArgs ...interface{})

AssertNotified asserts that the given channel received a notification.

Package notifier imports 3 packages (graph). Updated 2019-01-31. Refresh now. Tools for package owners.