mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPClient

type HTTPClient struct {
	mock.Mock
}

func (*HTTPClient) Do

func (m *HTTPClient) Do(req *http.Request) (*http.Response, error)

type ZapCore

type ZapCore struct {
	mock.Mock
}

func (*ZapCore) Check

Check returns the passed in zapcore.CheckedEntry. This makes mocking a lot simpler as zap chains the Check function.

func (*ZapCore) Enabled

func (m *ZapCore) Enabled(level zapcore.Level) bool

func (*ZapCore) Sync

func (m *ZapCore) Sync() error

func (*ZapCore) With

func (m *ZapCore) With(fields []zapcore.Field) zapcore.Core

func (*ZapCore) Write

func (m *ZapCore) Write(entry zapcore.Entry, fields []zapcore.Field) error

Jump to

Keyboard shortcuts

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