mock_gosesh

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDParser

type IDParser struct {
	mock.Mock
}

IDParser is an autogenerated mock type for the IDParser type

func NewIDParser

func NewIDParser(t interface {
	mock.TestingT
	Cleanup(func())
}) *IDParser

NewIDParser creates a new instance of IDParser. 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 (*IDParser) EXPECT

func (_m *IDParser) EXPECT() *IDParser_Expecter

func (*IDParser) Parse

func (_m *IDParser) Parse(_a0 []byte) (gosesh.Identifier, error)

Parse provides a mock function with given fields: _a0

type IDParser_Expecter

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

func (*IDParser_Expecter) Parse

func (_e *IDParser_Expecter) Parse(_a0 interface{}) *IDParser_Parse_Call

Parse is a helper method to define mock.On call

  • _a0 []byte

type IDParser_Parse_Call

type IDParser_Parse_Call struct {
	*mock.Call
}

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

func (*IDParser_Parse_Call) Return

func (*IDParser_Parse_Call) Run

func (_c *IDParser_Parse_Call) Run(run func(_a0 []byte)) *IDParser_Parse_Call

func (*IDParser_Parse_Call) RunAndReturn

func (_c *IDParser_Parse_Call) RunAndReturn(run func([]byte) (gosesh.Identifier, error)) *IDParser_Parse_Call

type Identifier

type Identifier struct {
	mock.Mock
}

Identifier is an autogenerated mock type for the Identifier type

func NewIdentifier

func NewIdentifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *Identifier

NewIdentifier creates a new instance of Identifier. 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 (*Identifier) EXPECT

func (_m *Identifier) EXPECT() *Identifier_Expecter

func (*Identifier) String

func (_m *Identifier) String() string

String provides a mock function with given fields:

type Identifier_Expecter

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

func (*Identifier_Expecter) String

String is a helper method to define mock.On call

type Identifier_String_Call

type Identifier_String_Call struct {
	*mock.Call
}

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

func (*Identifier_String_Call) Return

func (*Identifier_String_Call) Run

func (_c *Identifier_String_Call) Run(run func()) *Identifier_String_Call

func (*Identifier_String_Call) RunAndReturn

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

type NewOpts

type NewOpts struct {
	mock.Mock
}

NewOpts is an autogenerated mock type for the NewOpts type

func NewNewOpts

func NewNewOpts(t interface {
	mock.TestingT
	Cleanup(func())
}) *NewOpts

NewNewOpts creates a new instance of NewOpts. 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 (*NewOpts) EXPECT

func (_m *NewOpts) EXPECT() *NewOpts_Expecter

func (*NewOpts) Execute

func (_m *NewOpts) Execute(_a0 *gosesh.Gosesh)

Execute provides a mock function with given fields: _a0

type NewOpts_Execute_Call

type NewOpts_Execute_Call struct {
	*mock.Call
}

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

func (*NewOpts_Execute_Call) Return

func (*NewOpts_Execute_Call) Run

func (_c *NewOpts_Execute_Call) Run(run func(_a0 *gosesh.Gosesh)) *NewOpts_Execute_Call

func (*NewOpts_Execute_Call) RunAndReturn

func (_c *NewOpts_Execute_Call) RunAndReturn(run func(*gosesh.Gosesh)) *NewOpts_Execute_Call

type NewOpts_Expecter

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

func (*NewOpts_Expecter) Execute

func (_e *NewOpts_Expecter) Execute(_a0 interface{}) *NewOpts_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 *gosesh.Gosesh

type OAuth2User

type OAuth2User struct {
	mock.Mock
}

OAuth2User is an autogenerated mock type for the OAuth2User type

func NewOAuth2User

func NewOAuth2User(t interface {
	mock.TestingT
	Cleanup(func())
}) *OAuth2User

NewOAuth2User creates a new instance of OAuth2User. 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 (*OAuth2User) EXPECT

func (_m *OAuth2User) EXPECT() *OAuth2User_Expecter

func (*OAuth2User) Request

func (_m *OAuth2User) Request(ctx context.Context, accessToken string) (*http.Response, error)

Request provides a mock function with given fields: ctx, accessToken

func (*OAuth2User) String

func (_m *OAuth2User) String() string

String provides a mock function with given fields:

func (*OAuth2User) Unmarshal

func (_m *OAuth2User) Unmarshal(b []byte) error

Unmarshal provides a mock function with given fields: b

type OAuth2User_Expecter

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

func (*OAuth2User_Expecter) Request

func (_e *OAuth2User_Expecter) Request(ctx interface{}, accessToken interface{}) *OAuth2User_Request_Call

Request is a helper method to define mock.On call

  • ctx context.Context
  • accessToken string

func (*OAuth2User_Expecter) String

String is a helper method to define mock.On call

func (*OAuth2User_Expecter) Unmarshal

func (_e *OAuth2User_Expecter) Unmarshal(b interface{}) *OAuth2User_Unmarshal_Call

Unmarshal is a helper method to define mock.On call

  • b []byte

type OAuth2User_Request_Call

type OAuth2User_Request_Call struct {
	*mock.Call
}

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

func (*OAuth2User_Request_Call) Return

func (*OAuth2User_Request_Call) Run

func (_c *OAuth2User_Request_Call) Run(run func(ctx context.Context, accessToken string)) *OAuth2User_Request_Call

func (*OAuth2User_Request_Call) RunAndReturn

type OAuth2User_String_Call

type OAuth2User_String_Call struct {
	*mock.Call
}

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

func (*OAuth2User_String_Call) Return

func (*OAuth2User_String_Call) Run

func (_c *OAuth2User_String_Call) Run(run func()) *OAuth2User_String_Call

func (*OAuth2User_String_Call) RunAndReturn

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

type OAuth2User_Unmarshal_Call

type OAuth2User_Unmarshal_Call struct {
	*mock.Call
}

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

func (*OAuth2User_Unmarshal_Call) Return

func (*OAuth2User_Unmarshal_Call) Run

func (*OAuth2User_Unmarshal_Call) RunAndReturn

func (_c *OAuth2User_Unmarshal_Call) RunAndReturn(run func([]byte) error) *OAuth2User_Unmarshal_Call

type Storer

type Storer struct {
	mock.Mock
}

Storer is an autogenerated mock type for the Storer type

func NewStorer

func NewStorer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Storer

NewStorer creates a new instance of Storer. 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 (*Storer) CreateSession

func (_m *Storer) CreateSession(ctx context.Context, req gosesh.CreateSessionRequest) (*gosesh.Session, error)

CreateSession provides a mock function with given fields: ctx, req

func (*Storer) DeleteSession

func (_m *Storer) DeleteSession(ctx context.Context, sessionID gosesh.Identifier) error

DeleteSession provides a mock function with given fields: ctx, sessionID

func (*Storer) DeleteUserSessions

func (_m *Storer) DeleteUserSessions(ctx context.Context, userID gosesh.Identifier) (int, error)

DeleteUserSessions provides a mock function with given fields: ctx, userID

func (*Storer) EXPECT

func (_m *Storer) EXPECT() *Storer_Expecter

func (*Storer) GetSession

func (_m *Storer) GetSession(ctx context.Context, sessionID gosesh.Identifier) (*gosesh.Session, error)

GetSession provides a mock function with given fields: ctx, sessionID

func (*Storer) UpdateSession

func (_m *Storer) UpdateSession(ctx context.Context, sessionID gosesh.Identifier, req gosesh.UpdateSessionValues) (*gosesh.Session, error)

UpdateSession provides a mock function with given fields: ctx, sessionID, req

func (*Storer) UpsertUser

func (_m *Storer) UpsertUser(ctx context.Context, udr gosesh.OAuth2User) (gosesh.Identifier, error)

UpsertUser provides a mock function with given fields: ctx, udr

type Storer_CreateSession_Call

type Storer_CreateSession_Call struct {
	*mock.Call
}

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

func (*Storer_CreateSession_Call) Return

func (*Storer_CreateSession_Call) Run

func (*Storer_CreateSession_Call) RunAndReturn

type Storer_DeleteSession_Call

type Storer_DeleteSession_Call struct {
	*mock.Call
}

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

func (*Storer_DeleteSession_Call) Return

func (*Storer_DeleteSession_Call) Run

func (*Storer_DeleteSession_Call) RunAndReturn

type Storer_DeleteUserSessions_Call

type Storer_DeleteUserSessions_Call struct {
	*mock.Call
}

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

func (*Storer_DeleteUserSessions_Call) Return

func (*Storer_DeleteUserSessions_Call) Run

func (*Storer_DeleteUserSessions_Call) RunAndReturn

type Storer_Expecter

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

func (*Storer_Expecter) CreateSession

func (_e *Storer_Expecter) CreateSession(ctx interface{}, req interface{}) *Storer_CreateSession_Call

CreateSession is a helper method to define mock.On call

  • ctx context.Context
  • req gosesh.CreateSessionRequest

func (*Storer_Expecter) DeleteSession

func (_e *Storer_Expecter) DeleteSession(ctx interface{}, sessionID interface{}) *Storer_DeleteSession_Call

DeleteSession is a helper method to define mock.On call

  • ctx context.Context
  • sessionID gosesh.Identifier

func (*Storer_Expecter) DeleteUserSessions

func (_e *Storer_Expecter) DeleteUserSessions(ctx interface{}, userID interface{}) *Storer_DeleteUserSessions_Call

DeleteUserSessions is a helper method to define mock.On call

  • ctx context.Context
  • userID gosesh.Identifier

func (*Storer_Expecter) GetSession

func (_e *Storer_Expecter) GetSession(ctx interface{}, sessionID interface{}) *Storer_GetSession_Call

GetSession is a helper method to define mock.On call

  • ctx context.Context
  • sessionID gosesh.Identifier

func (*Storer_Expecter) UpdateSession

func (_e *Storer_Expecter) UpdateSession(ctx interface{}, sessionID interface{}, req interface{}) *Storer_UpdateSession_Call

UpdateSession is a helper method to define mock.On call

  • ctx context.Context
  • sessionID gosesh.Identifier
  • req gosesh.UpdateSessionValues

func (*Storer_Expecter) UpsertUser

func (_e *Storer_Expecter) UpsertUser(ctx interface{}, udr interface{}) *Storer_UpsertUser_Call

UpsertUser is a helper method to define mock.On call

  • ctx context.Context
  • udr gosesh.OAuth2User

type Storer_GetSession_Call

type Storer_GetSession_Call struct {
	*mock.Call
}

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

func (*Storer_GetSession_Call) Return

func (*Storer_GetSession_Call) Run

func (*Storer_GetSession_Call) RunAndReturn

type Storer_UpdateSession_Call

type Storer_UpdateSession_Call struct {
	*mock.Call
}

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

func (*Storer_UpdateSession_Call) Return

func (*Storer_UpdateSession_Call) Run

type Storer_UpsertUser_Call

type Storer_UpsertUser_Call struct {
	*mock.Call
}

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

func (*Storer_UpsertUser_Call) Return

func (*Storer_UpsertUser_Call) Run

func (*Storer_UpsertUser_Call) RunAndReturn

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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