Documentation ¶
Index ¶
- type DB
- func (_m *DB) GetChangeAttempts(ctx context.Context, changeID int64, patchsetID int64, ...) (*types.ChangeAttempts, error)
- func (_m *DB) GetCurrentChanges(ctx context.Context) (map[string]*types.CurrentlyProcessingChange, error)
- func (_m *DB) PutChangeAttempt(ctx context.Context, newChangeAttempt *types.ChangeAttempt, ...) error
- func (_m *DB) PutCurrentChanges(ctx context.Context, currentChangesCache interface{}) error
- func (_m *DB) UpdateChangeAttemptAsAbandoned(ctx context.Context, changeID int64, patchsetID int64, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB is an autogenerated mock type for the DB type
func NewDB ¶
NewDB creates a new instance of DB. 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 (*DB) GetChangeAttempts ¶
func (_m *DB) GetChangeAttempts(ctx context.Context, changeID int64, patchsetID int64, changesCol db.ChangesCol) (*types.ChangeAttempts, error)
GetChangeAttempts provides a mock function with given fields: ctx, changeID, patchsetID, changesCol
func (*DB) GetCurrentChanges ¶
func (_m *DB) GetCurrentChanges(ctx context.Context) (map[string]*types.CurrentlyProcessingChange, error)
GetCurrentChanges provides a mock function with given fields: ctx
func (*DB) PutChangeAttempt ¶
func (_m *DB) PutChangeAttempt(ctx context.Context, newChangeAttempt *types.ChangeAttempt, changesCol db.ChangesCol) error
PutChangeAttempt provides a mock function with given fields: ctx, newChangeAttempt, changesCol
func (*DB) PutCurrentChanges ¶
PutCurrentChanges provides a mock function with given fields: ctx, currentChangesCache
func (*DB) UpdateChangeAttemptAsAbandoned ¶
func (_m *DB) UpdateChangeAttemptAsAbandoned(ctx context.Context, changeID int64, patchsetID int64, changesCol db.ChangesCol, patchStart int64) error
UpdateChangeAttemptAsAbandoned provides a mock function with given fields: ctx, changeID, patchsetID, changesCol, patchStart