testutils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CapturePanicValue

func CapturePanicValue(f func()) (recovered interface{})

func CaptureStderrNoDoubleQuotes

func CaptureStderrNoDoubleQuotes(f func()) string

func CaptureStdoutNoDoubleQuotes

func CaptureStdoutNoDoubleQuotes(f func()) string

Types

type BufferingLogger

type BufferingLogger struct {
	Logger *zap.Logger
	Buffer *bytes.Buffer
}

func NewBufferingLogger

func NewBufferingLogger(level zapcore.Level) BufferingLogger

func (BufferingLogger) JsonNoDoubleQuotes

func (l BufferingLogger) JsonNoDoubleQuotes() string

type RoundTripFunc

type RoundTripFunc func(req *http.Request) (*http.Response, error)

func (RoundTripFunc) RoundTrip

func (f RoundTripFunc) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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