mock

package
v0.0.0-...-2d87cf0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamoPutItemMock

type DynamoPutItemMock struct {
	mock.Mock
}

DynamoPutItemMock is just a mock

func (DynamoPutItemMock) PutItem

PutItem is just a mock

type EventDispatcher

type EventDispatcher struct {
	mock.Mock
}

EventDispatcher is just a mock

func (*EventDispatcher) AttachSubscriber

func (m *EventDispatcher) AttachSubscriber(eventName string, subscriber event.Subscriber) event.Dispatcher

AttachSubscriber is just a mock

func (*EventDispatcher) Dispatch

func (m *EventDispatcher) Dispatch(eventName string, arg interface{})

Dispatch is just a mock

type HttpClientMock

type HttpClientMock struct {
	mock.Mock
}

HttpClientMock is just a mock

func (HttpClientMock) Get

func (m HttpClientMock) Get(url string) (*http.Response, error)

Get is just a mock

type Logger

type Logger struct {
	mock.Mock
}

func (*Logger) Debugf

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

Debugf mock

func (*Logger) Errorf

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

Errorf mock

func (*Logger) Infof

func (m *Logger) Infof(format string, args ...interface{})

Infof mock

func (*Logger) WithField

func (m *Logger) WithField(key string, value interface{}) log.Logger

WithField mock

type Marshaller

type Marshaller struct {
	mock.Mock
}

DynamoMarshaller is just a mock

func (Marshaller) MarshalMap

func (m Marshaller) MarshalMap(in interface{}) (map[string]*dynamodb.AttributeValue, error)

MarshalMap is just a mock

Jump to

Keyboard shortcuts

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