Documentation
¶
Index ¶
- func ChanDiscard[T any](ch <-chan T)
- func ChanLog[T any](ch <-chan T, logger *slog.Logger)
- func ChanRequireNoError(t testing.TB, ch <-chan error)
- func NewNopLogger() *slog.Logger
- func NewTestLogger(t *testing.T) *slog.Logger
- func NewTestStore(t *testing.T, state ...store.State) *store.FileStore
- func StreamFLV(t *testing.T, destURL string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChanDiscard ¶
func ChanDiscard[T any](ch <-chan T)
ChanDiscard consumes a channel and discards all values.
func ChanRequireNoError ¶
ChanRequireNoError consumes a channel and asserts that no error is received.
func NewNopLogger ¶
NewNopLogger returns a logger that discards all log output.
func NewTestLogger ¶
NewTestLogger returns a logger that writes to stderr.
func NewTestStore ¶ added in v0.0.11
NewTestStore creates a new file system store, isolated in a temporary file, for testing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.