testutil

package
v0.0.0-...-fb49ba0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package testutil provides useful testing helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(t HelpLogger) *zap.Logger

Logger returns a zap logger which logs to a test.

Types

type HelpLogger

type HelpLogger interface {
	Helper()
	Logf(format string, args ...any)
}

HelpLogger is an interface with Helper and Logf functions.

type Writer

type Writer struct {
	T HelpLogger
}

Writer is a io.Writer which writes to a test logger.

func (Writer) Write

func (tw Writer) Write(p []byte) (n int, err error)

Directories

Path Synopsis
Package miniredistest provides a test redis server.
Package miniredistest provides a test redis server.

Jump to

Keyboard shortcuts

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