mock_db

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: db/db.go

Generated by this command:

mockgen -source=db/db.go

Package mock_db is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDBService

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

MockDBService is a mock of DBService interface.

func NewMockDBService

func NewMockDBService(ctrl *gomock.Controller) *MockDBService

NewMockDBService creates a new mock instance.

func (*MockDBService) CreateOrUpdateSubscription

func (m *MockDBService) CreateOrUpdateSubscription(ctx context.Context, sub *db.Subscription, userAnyID string) error

CreateOrUpdateSubscription mocks base method.

func (*MockDBService) EXPECT

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

func (*MockDBService) GetAllSubscriptionsInStatus

func (m *MockDBService) GetAllSubscriptionsInStatus(ctx context.Context, status anypp_api.SubscriptionStatus) ([]string, error)

GetAllSubscriptionsInStatus mocks base method.

func (*MockDBService) GetPaymentRequest

func (m *MockDBService) GetPaymentRequest(ctx context.Context, billingID string) (*db.PaymentRequest, error)

GetPaymentRequest mocks base method.

func (*MockDBService) GetSubscription

func (m *MockDBService) GetSubscription(ctx context.Context, subID string) (*db.Subscription, error)

GetSubscription mocks base method.

func (*MockDBService) GetSubscriptionForUser

func (m *MockDBService) GetSubscriptionForUser(ctx context.Context, userAnyID string) (*db.Subscription, error)

GetSubscriptionForUser mocks base method.

func (*MockDBService) Init

func (m *MockDBService) Init(a *app.App) error

Init mocks base method.

func (*MockDBService) Name

func (m *MockDBService) Name() string

Name mocks base method.

func (*MockDBService) SaveNewPaymentRequest

func (m *MockDBService) SaveNewPaymentRequest(ctx context.Context, bsr *anypp_api.BuySubscriptionRequest, billingID string) error

SaveNewPaymentRequest mocks base method.

func (*MockDBService) UpdatePaymentRequest

func (m *MockDBService) UpdatePaymentRequest(ctx context.Context, pr *db.PaymentRequest, billingID string) error

UpdatePaymentRequest mocks base method.

type MockDBServiceMockRecorder

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

MockDBServiceMockRecorder is the mock recorder for MockDBService.

func (*MockDBServiceMockRecorder) CreateOrUpdateSubscription

func (mr *MockDBServiceMockRecorder) CreateOrUpdateSubscription(ctx, sub, userAnyID any) *gomock.Call

CreateOrUpdateSubscription indicates an expected call of CreateOrUpdateSubscription.

func (*MockDBServiceMockRecorder) GetAllSubscriptionsInStatus

func (mr *MockDBServiceMockRecorder) GetAllSubscriptionsInStatus(ctx, status any) *gomock.Call

GetAllSubscriptionsInStatus indicates an expected call of GetAllSubscriptionsInStatus.

func (*MockDBServiceMockRecorder) GetPaymentRequest

func (mr *MockDBServiceMockRecorder) GetPaymentRequest(ctx, billingID any) *gomock.Call

GetPaymentRequest indicates an expected call of GetPaymentRequest.

func (*MockDBServiceMockRecorder) GetSubscription

func (mr *MockDBServiceMockRecorder) GetSubscription(ctx, subID any) *gomock.Call

GetSubscription indicates an expected call of GetSubscription.

func (*MockDBServiceMockRecorder) GetSubscriptionForUser

func (mr *MockDBServiceMockRecorder) GetSubscriptionForUser(ctx, userAnyID any) *gomock.Call

GetSubscriptionForUser indicates an expected call of GetSubscriptionForUser.

func (*MockDBServiceMockRecorder) Init

Init indicates an expected call of Init.

func (*MockDBServiceMockRecorder) Name

Name indicates an expected call of Name.

func (*MockDBServiceMockRecorder) SaveNewPaymentRequest

func (mr *MockDBServiceMockRecorder) SaveNewPaymentRequest(ctx, bsr, billingID any) *gomock.Call

SaveNewPaymentRequest indicates an expected call of SaveNewPaymentRequest.

func (*MockDBServiceMockRecorder) UpdatePaymentRequest

func (mr *MockDBServiceMockRecorder) UpdatePaymentRequest(ctx, pr, billingID any) *gomock.Call

UpdatePaymentRequest indicates an expected call of UpdatePaymentRequest.

Jump to

Keyboard shortcuts

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