mocks

package
v0.10.3-0...-8c9dab5 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenStream

type TokenStream struct {
	mock.Mock
}

TokenStream is an autogenerated mock type for the TokenStream type

func NewTokenStream

func NewTokenStream(t interface {
	mock.TestingT
	Cleanup(func())
}) *TokenStream

NewTokenStream creates a new instance of TokenStream. 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 (*TokenStream) Advance

func (_m *TokenStream) Advance() bool

Advance provides a mock function with given fields:

func (*TokenStream) Destroy

func (_m *TokenStream) Destroy()

Destroy provides a mock function with given fields:

func (*TokenStream) EXPECT

func (_m *TokenStream) EXPECT() *TokenStream_Expecter

func (*TokenStream) Token

func (_m *TokenStream) Token() string

Token provides a mock function with given fields:

type TokenStream_Advance_Call

type TokenStream_Advance_Call struct {
	*mock.Call
}

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

func (*TokenStream_Advance_Call) Return

func (*TokenStream_Advance_Call) Run

func (*TokenStream_Advance_Call) RunAndReturn

func (_c *TokenStream_Advance_Call) RunAndReturn(run func() bool) *TokenStream_Advance_Call

type TokenStream_Destroy_Call

type TokenStream_Destroy_Call struct {
	*mock.Call
}

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

func (*TokenStream_Destroy_Call) Return

func (*TokenStream_Destroy_Call) Run

func (*TokenStream_Destroy_Call) RunAndReturn

func (_c *TokenStream_Destroy_Call) RunAndReturn(run func()) *TokenStream_Destroy_Call

type TokenStream_Expecter

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

func (*TokenStream_Expecter) Advance

Advance is a helper method to define mock.On call

func (*TokenStream_Expecter) Destroy

Destroy is a helper method to define mock.On call

func (*TokenStream_Expecter) Token

Token is a helper method to define mock.On call

type TokenStream_Token_Call

type TokenStream_Token_Call struct {
	*mock.Call
}

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

func (*TokenStream_Token_Call) Return

func (*TokenStream_Token_Call) Run

func (_c *TokenStream_Token_Call) Run(run func()) *TokenStream_Token_Call

func (*TokenStream_Token_Call) RunAndReturn

func (_c *TokenStream_Token_Call) RunAndReturn(run func() string) *TokenStream_Token_Call

type Tokenizer

type Tokenizer struct {
	mock.Mock
}

Tokenizer is an autogenerated mock type for the Tokenizer type

func NewTokenizer

func NewTokenizer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Tokenizer

NewTokenizer creates a new instance of Tokenizer. 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 (*Tokenizer) Destroy

func (_m *Tokenizer) Destroy()

Destroy provides a mock function with given fields:

func (*Tokenizer) EXPECT

func (_m *Tokenizer) EXPECT() *Tokenizer_Expecter

func (*Tokenizer) NewTokenStream

func (_m *Tokenizer) NewTokenStream(text string) tokenizerapi.TokenStream

NewTokenStream provides a mock function with given fields: text

type Tokenizer_Destroy_Call

type Tokenizer_Destroy_Call struct {
	*mock.Call
}

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

func (*Tokenizer_Destroy_Call) Return

func (*Tokenizer_Destroy_Call) Run

func (_c *Tokenizer_Destroy_Call) Run(run func()) *Tokenizer_Destroy_Call

func (*Tokenizer_Destroy_Call) RunAndReturn

func (_c *Tokenizer_Destroy_Call) RunAndReturn(run func()) *Tokenizer_Destroy_Call

type Tokenizer_Expecter

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

func (*Tokenizer_Expecter) Destroy

Destroy is a helper method to define mock.On call

func (*Tokenizer_Expecter) NewTokenStream

func (_e *Tokenizer_Expecter) NewTokenStream(text interface{}) *Tokenizer_NewTokenStream_Call

NewTokenStream is a helper method to define mock.On call

  • text string

type Tokenizer_NewTokenStream_Call

type Tokenizer_NewTokenStream_Call struct {
	*mock.Call
}

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

func (*Tokenizer_NewTokenStream_Call) Return

func (*Tokenizer_NewTokenStream_Call) Run

func (*Tokenizer_NewTokenStream_Call) RunAndReturn

Jump to

Keyboard shortcuts

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