mock

package
v0.0.0-...-0a0144f Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gatherer

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

Gatherer is a mock of Gatherer interface

func NewGatherer

func NewGatherer(ctrl *gomock.Controller) *Gatherer

NewGatherer creates a new mock instance

func (*Gatherer) EXPECT

func (m *Gatherer) EXPECT() *GathererMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*Gatherer) Gather

func (m *Gatherer) Gather() ([]*go0.MetricFamily, error)

Gather mocks base method

type GathererMockRecorder

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

GathererMockRecorder is the mock recorder for Gatherer

func (*GathererMockRecorder) Gather

func (mr *GathererMockRecorder) Gather() *gomock.Call

Gather indicates an expected call of Gather

type Handler

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

Handler is a mock of Handler interface

func NewHandler

func NewHandler(ctrl *gomock.Controller) *Handler

NewHandler creates a new mock instance

func (*Handler) EXPECT

func (m *Handler) EXPECT() *HandlerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*Handler) ServeHTTP

func (m *Handler) ServeHTTP(arg0 http.ResponseWriter, arg1 *http.Request)

ServeHTTP mocks base method

type HandlerMockRecorder

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

HandlerMockRecorder is the mock recorder for Handler

func (*HandlerMockRecorder) ServeHTTP

func (mr *HandlerMockRecorder) ServeHTTP(arg0, arg1 interface{}) *gomock.Call

ServeHTTP indicates an expected call of ServeHTTP

type ResponseWriter

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

ResponseWriter is a mock of ResponseWriter interface

func NewResponseWriter

func NewResponseWriter(ctrl *gomock.Controller) *ResponseWriter

NewResponseWriter creates a new mock instance

func (*ResponseWriter) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*ResponseWriter) Header

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

Header mocks base method

func (*ResponseWriter) Write

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

Write mocks base method

func (*ResponseWriter) WriteHeader

func (m *ResponseWriter) WriteHeader(arg0 int)

WriteHeader mocks base method

type ResponseWriterMockRecorder

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

ResponseWriterMockRecorder is the mock recorder for ResponseWriter

func (*ResponseWriterMockRecorder) Header

func (mr *ResponseWriterMockRecorder) Header() *gomock.Call

Header indicates an expected call of Header

func (*ResponseWriterMockRecorder) Write

func (mr *ResponseWriterMockRecorder) Write(arg0 interface{}) *gomock.Call

Write indicates an expected call of Write

func (*ResponseWriterMockRecorder) WriteHeader

func (mr *ResponseWriterMockRecorder) WriteHeader(arg0 interface{}) *gomock.Call

WriteHeader indicates an expected call of WriteHeader

Jump to

Keyboard shortcuts

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