testutils

package
v0.0.0-...-545bd39 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package testutils is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDatabase

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

MockDatabase is a mock of Database interface.

func NewMockDatabase

func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase

NewMockDatabase creates a new mock instance.

func (*MockDatabase) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDatabase) GetApp

func (m *MockDatabase) GetApp(appID string) (*types.Application, bool, error)

GetApp mocks base method.

func (*MockDatabase) GetAppNotificationsCount

func (m *MockDatabase) GetAppNotificationsCount(appID string) (uint64, error)

GetAppNotificationsCount mocks base method.

func (*MockDatabase) GetAppNotificationsRateLimit

func (m *MockDatabase) GetAppNotificationsRateLimit(appID string) (uint64, error)

GetAppNotificationsRateLimit mocks base method.

type MockDatabaseMockRecorder

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

MockDatabaseMockRecorder is the mock recorder for MockDatabase.

func (*MockDatabaseMockRecorder) GetApp

func (mr *MockDatabaseMockRecorder) GetApp(appID interface{}) *gomock.Call

GetApp indicates an expected call of GetApp.

func (*MockDatabaseMockRecorder) GetAppNotificationsCount

func (mr *MockDatabaseMockRecorder) GetAppNotificationsCount(appID interface{}) *gomock.Call

GetAppNotificationsCount indicates an expected call of GetAppNotificationsCount.

func (*MockDatabaseMockRecorder) GetAppNotificationsRateLimit

func (mr *MockDatabaseMockRecorder) GetAppNotificationsRateLimit(appID interface{}) *gomock.Call

GetAppNotificationsRateLimit indicates an expected call of GetAppNotificationsRateLimit.

type MockFirebase

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

MockFirebase is a mock of Firebase interface.

func NewMockFirebase

func NewMockFirebase(ctrl *gomock.Controller) *MockFirebase

NewMockFirebase creates a new mock instance.

func (*MockFirebase) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFirebase) SendNotificationToUsers

func (m *MockFirebase) SendNotificationToUsers(application *types.Application, usersAddresses []string, notification *types.Notification) error

SendNotificationToUsers mocks base method.

type MockFirebaseMockRecorder

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

MockFirebaseMockRecorder is the mock recorder for MockFirebase.

func (*MockFirebaseMockRecorder) SendNotificationToUsers

func (mr *MockFirebaseMockRecorder) SendNotificationToUsers(application, usersAddresses, notification interface{}) *gomock.Call

SendNotificationToUsers indicates an expected call of SendNotificationToUsers.

Jump to

Keyboard shortcuts

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