mock

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 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 ResponseWriter

type ResponseWriter struct {
	mock.Mock
}

func (*ResponseWriter) Header

func (m *ResponseWriter) Header() http.Header

func (*ResponseWriter) Write

func (m *ResponseWriter) Write(bytes []byte) (int, error)

func (*ResponseWriter) WriteHeader

func (m *ResponseWriter) WriteHeader(statusCode int)

type ZapCore

type ZapCore struct {
	mock.Mock
}

func (*ZapCore) Check

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