testutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEBUGLOG = iota + 1
	INFOLOG
	ERRORLOG
)

Variables

This section is empty.

Functions

func NewMockConfig added in v0.2.0

func NewMockConfig(configMap map[string]string) config.Config

func StderrOutputForFunc

func StderrOutputForFunc(f func()) string

func StdoutOutputForFunc

func StdoutOutputForFunc(f func()) string

Types

type MockLogger

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

func NewMockLogger

func NewMockLogger(level int) *MockLogger

func (*MockLogger) Debug

func (m *MockLogger) Debug(args ...interface{})

func (*MockLogger) Debugf

func (m *MockLogger) Debugf(format string, args ...interface{})

func (*MockLogger) Error

func (m *MockLogger) Error(args ...interface{})

func (*MockLogger) Errorf

func (m *MockLogger) Errorf(format string, args ...interface{})

func (*MockLogger) Log

func (m *MockLogger) Log(args ...interface{})

func (*MockLogger) Logf

func (m *MockLogger) Logf(format string, args ...interface{})

Jump to

Keyboard shortcuts

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