mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAnalyzer

type MockAnalyzer struct {
	mock.Mock
}

MockAnalyzer is an autogenerated mock type for the Analyzer type

func NewMockAnalyzer

func NewMockAnalyzer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAnalyzer

NewMockAnalyzer creates a new instance of MockAnalyzer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockAnalyzer) EXPECT

func (_m *MockAnalyzer) EXPECT() *MockAnalyzer_Expecter

func (*MockAnalyzer) Graph

func (_m *MockAnalyzer) Graph(_a0 analysis.GraphType) error

Graph provides a mock function with given fields: _a0

func (*MockAnalyzer) Stats

func (_m *MockAnalyzer) Stats() error

Stats provides a mock function with given fields:

type MockAnalyzer_Expecter

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

func (*MockAnalyzer_Expecter) Graph

func (_e *MockAnalyzer_Expecter) Graph(_a0 interface{}) *MockAnalyzer_Graph_Call

Graph is a helper method to define mock.On call

  • _a0 analysis.GraphType

func (*MockAnalyzer_Expecter) Stats

Stats is a helper method to define mock.On call

type MockAnalyzer_Graph_Call

type MockAnalyzer_Graph_Call struct {
	*mock.Call
}

MockAnalyzer_Graph_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Graph'

func (*MockAnalyzer_Graph_Call) Return

func (*MockAnalyzer_Graph_Call) Run

func (*MockAnalyzer_Graph_Call) RunAndReturn

type MockAnalyzer_Stats_Call

type MockAnalyzer_Stats_Call struct {
	*mock.Call
}

MockAnalyzer_Stats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stats'

func (*MockAnalyzer_Stats_Call) Return

func (*MockAnalyzer_Stats_Call) Run

func (_c *MockAnalyzer_Stats_Call) Run(run func()) *MockAnalyzer_Stats_Call

func (*MockAnalyzer_Stats_Call) RunAndReturn

func (_c *MockAnalyzer_Stats_Call) RunAndReturn(run func() error) *MockAnalyzer_Stats_Call

Jump to

Keyboard shortcuts

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