mocks

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

README

This directory contains auto-generated mocks for the ProfilerService interface.

To regenerate the mocks, install https://github.com/golang/mock tool and run the command below while in the mocks directory.

mockgen -package mocks google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2 \
         ProfilerServiceClient \
         > mock_profiler_client.go

Then re-add the copyright header in the file. You also need to either run the commands above using Golang 1.6 or manually change the "context" import to "context" to ensure the compatibility with Go 1.6.

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProfilerServiceClient

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

MockProfilerServiceClient is a mock of ProfilerServiceClient interface

func NewMockProfilerServiceClient

func NewMockProfilerServiceClient(ctrl *gomock.Controller) *MockProfilerServiceClient

NewMockProfilerServiceClient creates a new mock instance

func (*MockProfilerServiceClient) CreateOfflineProfile added in v0.26.0

func (m *MockProfilerServiceClient) CreateOfflineProfile(arg0 context.Context, arg1 *v2.CreateOfflineProfileRequest, arg2 ...grpc.CallOption) (*v2.Profile, error)

CreateOfflineProfile mocks base method

func (*MockProfilerServiceClient) CreateProfile

func (m *MockProfilerServiceClient) CreateProfile(arg0 context.Context, arg1 *v2.CreateProfileRequest, arg2 ...grpc.CallOption) (*v2.Profile, error)

CreateProfile mocks base method

func (*MockProfilerServiceClient) EXPECT

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

func (*MockProfilerServiceClient) UpdateProfile

func (m *MockProfilerServiceClient) UpdateProfile(arg0 context.Context, arg1 *v2.UpdateProfileRequest, arg2 ...grpc.CallOption) (*v2.Profile, error)

UpdateProfile mocks base method

type MockProfilerServiceClientMockRecorder added in v0.26.0

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

MockProfilerServiceClientMockRecorder is the mock recorder for MockProfilerServiceClient

func (*MockProfilerServiceClientMockRecorder) CreateOfflineProfile added in v0.26.0

func (mr *MockProfilerServiceClientMockRecorder) CreateOfflineProfile(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

CreateOfflineProfile indicates an expected call of CreateOfflineProfile

func (*MockProfilerServiceClientMockRecorder) CreateProfile added in v0.26.0

func (mr *MockProfilerServiceClientMockRecorder) CreateProfile(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

CreateProfile indicates an expected call of CreateProfile

func (*MockProfilerServiceClientMockRecorder) UpdateProfile added in v0.26.0

func (mr *MockProfilerServiceClientMockRecorder) UpdateProfile(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

UpdateProfile indicates an expected call of UpdateProfile

Jump to

Keyboard shortcuts

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