firebasetest

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 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 AuthAPI

type AuthAPI struct {
	mock.Mock
}

AuthAPI is an autogenerated mock type for the AuthAPI type

func NewAuthAPI

func NewAuthAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuthAPI

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

func (_m *AuthAPI) EXPECT() *AuthAPI_Expecter

func (*AuthAPI) VerifyIDToken

func (_mock *AuthAPI) VerifyIDToken(ctx context.Context, idToken string) (firebase.TokenClaims, error)

VerifyIDToken provides a mock function for the type AuthAPI

type AuthAPI_Expecter

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

func (*AuthAPI_Expecter) VerifyIDToken

func (_e *AuthAPI_Expecter) VerifyIDToken(ctx interface{}, idToken interface{}) *AuthAPI_VerifyIDToken_Call

VerifyIDToken is a helper method to define mock.On call

  • ctx context.Context
  • idToken string

type AuthAPI_VerifyIDToken_Call

type AuthAPI_VerifyIDToken_Call struct {
	*mock.Call
}

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

func (*AuthAPI_VerifyIDToken_Call) Return

func (*AuthAPI_VerifyIDToken_Call) Run

func (*AuthAPI_VerifyIDToken_Call) RunAndReturn

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. 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 (*Client) Auth

func (_mock *Client) Auth() firebase.AuthAPI

Auth provides a mock function for the type Client

func (*Client) AuthClient

func (_mock *Client) AuthClient() *auth.Client

AuthClient provides a mock function for the type Client

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) UserManagement

func (_mock *Client) UserManagement() firebase.UserManagement

UserManagement provides a mock function for the type Client

type Client_AuthClient_Call

type Client_AuthClient_Call struct {
	*mock.Call
}

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

func (*Client_AuthClient_Call) Return

func (*Client_AuthClient_Call) Run

func (_c *Client_AuthClient_Call) Run(run func()) *Client_AuthClient_Call

func (*Client_AuthClient_Call) RunAndReturn

func (_c *Client_AuthClient_Call) RunAndReturn(run func() *auth.Client) *Client_AuthClient_Call

type Client_Auth_Call

type Client_Auth_Call struct {
	*mock.Call
}

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

func (*Client_Auth_Call) Return

func (_c *Client_Auth_Call) Return(authAPI firebase.AuthAPI) *Client_Auth_Call

func (*Client_Auth_Call) Run

func (_c *Client_Auth_Call) Run(run func()) *Client_Auth_Call

func (*Client_Auth_Call) RunAndReturn

func (_c *Client_Auth_Call) RunAndReturn(run func() firebase.AuthAPI) *Client_Auth_Call

type Client_Expecter

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

func (*Client_Expecter) Auth

func (_e *Client_Expecter) Auth() *Client_Auth_Call

Auth is a helper method to define mock.On call

func (*Client_Expecter) AuthClient

func (_e *Client_Expecter) AuthClient() *Client_AuthClient_Call

AuthClient is a helper method to define mock.On call

func (*Client_Expecter) UserManagement

func (_e *Client_Expecter) UserManagement() *Client_UserManagement_Call

UserManagement is a helper method to define mock.On call

type Client_UserManagement_Call

type Client_UserManagement_Call struct {
	*mock.Call
}

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

func (*Client_UserManagement_Call) Return

func (*Client_UserManagement_Call) Run

func (*Client_UserManagement_Call) RunAndReturn

type User

type User struct {
	mock.Mock
}

User is an autogenerated mock type for the User type

func NewUser

func NewUser(t interface {
	mock.TestingT
	Cleanup(func())
}) *User

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

func (_m *User) EXPECT() *User_Expecter

func (*User) Email

func (_mock *User) Email() string

Email provides a mock function for the type User

func (*User) EmailVerified

func (_mock *User) EmailVerified() bool

EmailVerified provides a mock function for the type User

func (*User) FirstName

func (_mock *User) FirstName() string

FirstName provides a mock function for the type User

func (*User) ID

func (_mock *User) ID() string

ID provides a mock function for the type User

func (*User) LastName

func (_mock *User) LastName() string

LastName provides a mock function for the type User

func (*User) Password

func (_mock *User) Password() string

Password provides a mock function for the type User

type UserManagement

type UserManagement struct {
	mock.Mock
}

UserManagement is an autogenerated mock type for the UserManagement type

func NewUserManagement

func NewUserManagement(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserManagement

NewUserManagement creates a new instance of UserManagement. 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 (*UserManagement) Create

func (_mock *UserManagement) Create(ctx context.Context, user firebase.User) (firebase.User, error)

Create provides a mock function for the type UserManagement

func (*UserManagement) Delete

func (_mock *UserManagement) Delete(ctx context.Context, id string) error

Delete provides a mock function for the type UserManagement

func (*UserManagement) EXPECT

func (*UserManagement) Get

func (_mock *UserManagement) Get(ctx context.Context, id string) (firebase.User, error)

Get provides a mock function for the type UserManagement

func (*UserManagement) GetByEmail

func (_mock *UserManagement) GetByEmail(ctx context.Context, email string) (firebase.User, error)

GetByEmail provides a mock function for the type UserManagement

func (*UserManagement) Update

func (_mock *UserManagement) Update(ctx context.Context, id string, user firebase.User) (firebase.User, error)

Update provides a mock function for the type UserManagement

type UserManagement_Create_Call

type UserManagement_Create_Call struct {
	*mock.Call
}

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

func (*UserManagement_Create_Call) Return

func (*UserManagement_Create_Call) Run

func (*UserManagement_Create_Call) RunAndReturn

type UserManagement_Delete_Call

type UserManagement_Delete_Call struct {
	*mock.Call
}

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

func (*UserManagement_Delete_Call) Return

func (*UserManagement_Delete_Call) Run

func (*UserManagement_Delete_Call) RunAndReturn

type UserManagement_Expecter

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

func (*UserManagement_Expecter) Create

func (_e *UserManagement_Expecter) Create(ctx interface{}, user interface{}) *UserManagement_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • user firebase.User

func (*UserManagement_Expecter) Delete

func (_e *UserManagement_Expecter) Delete(ctx interface{}, id interface{}) *UserManagement_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*UserManagement_Expecter) Get

func (_e *UserManagement_Expecter) Get(ctx interface{}, id interface{}) *UserManagement_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*UserManagement_Expecter) GetByEmail

func (_e *UserManagement_Expecter) GetByEmail(ctx interface{}, email interface{}) *UserManagement_GetByEmail_Call

GetByEmail is a helper method to define mock.On call

  • ctx context.Context
  • email string

func (*UserManagement_Expecter) Update

func (_e *UserManagement_Expecter) Update(ctx interface{}, id interface{}, user interface{}) *UserManagement_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • user firebase.User

type UserManagement_GetByEmail_Call

type UserManagement_GetByEmail_Call struct {
	*mock.Call
}

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

func (*UserManagement_GetByEmail_Call) Return

func (*UserManagement_GetByEmail_Call) Run

func (*UserManagement_GetByEmail_Call) RunAndReturn

type UserManagement_Get_Call

type UserManagement_Get_Call struct {
	*mock.Call
}

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

func (*UserManagement_Get_Call) Return

func (*UserManagement_Get_Call) Run

func (*UserManagement_Get_Call) RunAndReturn

func (_c *UserManagement_Get_Call) RunAndReturn(run func(ctx context.Context, id string) (firebase.User, error)) *UserManagement_Get_Call

type UserManagement_Update_Call

type UserManagement_Update_Call struct {
	*mock.Call
}

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

func (*UserManagement_Update_Call) Return

func (*UserManagement_Update_Call) Run

func (*UserManagement_Update_Call) RunAndReturn

type User_EmailVerified_Call

type User_EmailVerified_Call struct {
	*mock.Call
}

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

func (*User_EmailVerified_Call) Return

func (*User_EmailVerified_Call) Run

func (_c *User_EmailVerified_Call) Run(run func()) *User_EmailVerified_Call

func (*User_EmailVerified_Call) RunAndReturn

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

type User_Email_Call

type User_Email_Call struct {
	*mock.Call
}

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

func (*User_Email_Call) Return

func (_c *User_Email_Call) Return(s string) *User_Email_Call

func (*User_Email_Call) Run

func (_c *User_Email_Call) Run(run func()) *User_Email_Call

func (*User_Email_Call) RunAndReturn

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

type User_Expecter

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

func (*User_Expecter) Email

func (_e *User_Expecter) Email() *User_Email_Call

Email is a helper method to define mock.On call

func (*User_Expecter) EmailVerified

func (_e *User_Expecter) EmailVerified() *User_EmailVerified_Call

EmailVerified is a helper method to define mock.On call

func (*User_Expecter) FirstName

func (_e *User_Expecter) FirstName() *User_FirstName_Call

FirstName is a helper method to define mock.On call

func (*User_Expecter) ID

func (_e *User_Expecter) ID() *User_ID_Call

ID is a helper method to define mock.On call

func (*User_Expecter) LastName

func (_e *User_Expecter) LastName() *User_LastName_Call

LastName is a helper method to define mock.On call

func (*User_Expecter) Password

func (_e *User_Expecter) Password() *User_Password_Call

Password is a helper method to define mock.On call

type User_FirstName_Call

type User_FirstName_Call struct {
	*mock.Call
}

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

func (*User_FirstName_Call) Return

func (*User_FirstName_Call) Run

func (_c *User_FirstName_Call) Run(run func()) *User_FirstName_Call

func (*User_FirstName_Call) RunAndReturn

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

type User_ID_Call

type User_ID_Call struct {
	*mock.Call
}

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

func (*User_ID_Call) Return

func (_c *User_ID_Call) Return(s string) *User_ID_Call

func (*User_ID_Call) Run

func (_c *User_ID_Call) Run(run func()) *User_ID_Call

func (*User_ID_Call) RunAndReturn

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

type User_LastName_Call

type User_LastName_Call struct {
	*mock.Call
}

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

func (*User_LastName_Call) Return

func (*User_LastName_Call) Run

func (_c *User_LastName_Call) Run(run func()) *User_LastName_Call

func (*User_LastName_Call) RunAndReturn

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

type User_Password_Call

type User_Password_Call struct {
	*mock.Call
}

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

func (*User_Password_Call) Return

func (*User_Password_Call) Run

func (_c *User_Password_Call) Run(run func()) *User_Password_Call

func (*User_Password_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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