mongotest

package
v0.0.0-...-298751d Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 4 Imported by: 11

Documentation

Overview

Package mongotest is a generated GoMock package.

Index

Constants

View Source
const (
	DialTimeout   = 5 * time.Minute
	SocketTimeout = DialTimeout
)

Variables

This section is empty.

Functions

func DialOpts

func DialOpts() mongo.DialOpts

DialOpts returns mongo.DialOpts suitable for use in tests that operate against a real MongoDB server. The timeouts are chosen to avoid failures caused by slow I/O; we do not expect the timeouts to be reached under normal circumstances.

Types

type MockMongoSnapService

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

MockMongoSnapService is a mock of MongoSnapService interface.

func NewMockMongoSnapService

func NewMockMongoSnapService(ctrl *gomock.Controller) *MockMongoSnapService

NewMockMongoSnapService creates a new mock instance.

func (*MockMongoSnapService) ConfigOverride

func (m *MockMongoSnapService) ConfigOverride() error

ConfigOverride mocks base method.

func (*MockMongoSnapService) EXPECT

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

func (*MockMongoSnapService) Exists

func (m *MockMongoSnapService) Exists() (bool, error)

Exists mocks base method.

func (*MockMongoSnapService) Install

func (m *MockMongoSnapService) Install() error

Install mocks base method.

func (*MockMongoSnapService) Installed

func (m *MockMongoSnapService) Installed() (bool, error)

Installed mocks base method.

func (*MockMongoSnapService) Name

func (m *MockMongoSnapService) Name() string

Name mocks base method.

func (*MockMongoSnapService) Restart

func (m *MockMongoSnapService) Restart() error

Restart mocks base method.

func (*MockMongoSnapService) Running

func (m *MockMongoSnapService) Running() (bool, error)

Running mocks base method.

func (*MockMongoSnapService) Start

func (m *MockMongoSnapService) Start() error

Start mocks base method.

type MockMongoSnapServiceMockRecorder

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

MockMongoSnapServiceMockRecorder is the mock recorder for MockMongoSnapService.

func (*MockMongoSnapServiceMockRecorder) ConfigOverride

func (mr *MockMongoSnapServiceMockRecorder) ConfigOverride() *gomock.Call

ConfigOverride indicates an expected call of ConfigOverride.

func (*MockMongoSnapServiceMockRecorder) Exists

Exists indicates an expected call of Exists.

func (*MockMongoSnapServiceMockRecorder) Install

Install indicates an expected call of Install.

func (*MockMongoSnapServiceMockRecorder) Installed

func (mr *MockMongoSnapServiceMockRecorder) Installed() *gomock.Call

Installed indicates an expected call of Installed.

func (*MockMongoSnapServiceMockRecorder) Name

Name indicates an expected call of Name.

func (*MockMongoSnapServiceMockRecorder) Restart

Restart indicates an expected call of Restart.

func (*MockMongoSnapServiceMockRecorder) Running

Running indicates an expected call of Running.

func (*MockMongoSnapServiceMockRecorder) Start

Start indicates an expected call of Start.

Jump to

Keyboard shortcuts

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