Documentation ¶
Index ¶
- type TokenStream
- type TokenStream_Advance_Call
- type TokenStream_Destroy_Call
- type TokenStream_Expecter
- type TokenStream_Token_Call
- type Tokenizer
- type Tokenizer_Destroy_Call
- type Tokenizer_Expecter
- type Tokenizer_NewTokenStream_Call
- func (_c *Tokenizer_NewTokenStream_Call) Return(_a0 tokenizerapi.TokenStream) *Tokenizer_NewTokenStream_Call
- func (_c *Tokenizer_NewTokenStream_Call) Run(run func(text string)) *Tokenizer_NewTokenStream_Call
- func (_c *Tokenizer_NewTokenStream_Call) RunAndReturn(run func(string) tokenizerapi.TokenStream) *Tokenizer_NewTokenStream_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenStream ¶
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 ¶
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 (_c *TokenStream_Advance_Call) Return(_a0 bool) *TokenStream_Advance_Call
func (*TokenStream_Advance_Call) Run ¶
func (_c *TokenStream_Advance_Call) Run(run func()) *TokenStream_Advance_Call
func (*TokenStream_Advance_Call) RunAndReturn ¶
func (_c *TokenStream_Advance_Call) RunAndReturn(run func() bool) *TokenStream_Advance_Call
type TokenStream_Destroy_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 (_c *TokenStream_Destroy_Call) Return() *TokenStream_Destroy_Call
func (*TokenStream_Destroy_Call) Run ¶
func (_c *TokenStream_Destroy_Call) Run(run func()) *TokenStream_Destroy_Call
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 ¶
func (_e *TokenStream_Expecter) Advance() *TokenStream_Advance_Call
Advance is a helper method to define mock.On call
func (*TokenStream_Expecter) Destroy ¶
func (_e *TokenStream_Expecter) Destroy() *TokenStream_Destroy_Call
Destroy is a helper method to define mock.On call
func (*TokenStream_Expecter) Token ¶
func (_e *TokenStream_Expecter) Token() *TokenStream_Token_Call
Token is a helper method to define mock.On call
type TokenStream_Token_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 (_c *TokenStream_Token_Call) Return(_a0 string) *TokenStream_Token_Call
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 ¶
Tokenizer is an autogenerated mock type for the Tokenizer type
func NewTokenizer ¶
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 ¶
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 (_c *Tokenizer_Destroy_Call) Return() *Tokenizer_Destroy_Call
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 ¶
func (_e *Tokenizer_Expecter) Destroy() *Tokenizer_Destroy_Call
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 ¶
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 (_c *Tokenizer_NewTokenStream_Call) Return(_a0 tokenizerapi.TokenStream) *Tokenizer_NewTokenStream_Call
func (*Tokenizer_NewTokenStream_Call) Run ¶
func (_c *Tokenizer_NewTokenStream_Call) Run(run func(text string)) *Tokenizer_NewTokenStream_Call
func (*Tokenizer_NewTokenStream_Call) RunAndReturn ¶
func (_c *Tokenizer_NewTokenStream_Call) RunAndReturn(run func(string) tokenizerapi.TokenStream) *Tokenizer_NewTokenStream_Call