testhelpers

package
v0.0.0-...-5107381 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package testhelpers provides generic helpers for unit tests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogBuffer

type LogBuffer struct {
	// contains filtered or unexported fields
}

LogBuffer wraps a gbytes.Buffer to match the zap.Sink interface

func (*LogBuffer) Buffer

func (l *LogBuffer) Buffer() *gbytes.Buffer

Buffer returns the internal buffer

func (*LogBuffer) Close

func (l *LogBuffer) Close() error

Close implements the io.Closer interface

func (*LogBuffer) Reset

func (l *LogBuffer) Reset()

Reset resets the internal gbytes Buffer to a clean state

func (LogBuffer) Sync

func (LogBuffer) Sync() error

Sync is an empty implementation of the sync method

func (*LogBuffer) Write

func (l *LogBuffer) Write(p []byte) (n int, err error)

Write implements the io.Writer interface

Jump to

Keyboard shortcuts

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