2024-03-18 19:07:45 +00:00
// Code generated by mockery v2.42.1. DO NOT EDIT.
2022-08-31 23:19:49 +00:00
package mocks
import (
mock "github.com/stretchr/testify/mock"
2023-12-08 07:15:08 +00:00
model "go.woodpecker-ci.org/woodpecker/v2/server/model"
2022-08-31 23:19:49 +00:00
)
// Store is an autogenerated mock type for the Store type
type Store struct {
mock . Mock
}
2023-01-28 13:13:04 +00:00
// AgentCreate provides a mock function with given fields: _a0
func ( _m * Store ) AgentCreate ( _a0 * model . Agent ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for AgentCreate" )
}
2023-01-28 13:13:04 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Agent ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// AgentDelete provides a mock function with given fields: _a0
func ( _m * Store ) AgentDelete ( _a0 * model . Agent ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for AgentDelete" )
}
2023-01-28 13:13:04 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Agent ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// AgentFind provides a mock function with given fields: _a0
func ( _m * Store ) AgentFind ( _a0 int64 ) ( * model . Agent , error ) {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for AgentFind" )
}
2023-01-28 13:13:04 +00:00
var r0 * model . Agent
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( int64 ) ( * model . Agent , error ) ) ; ok {
return rf ( _a0 )
}
2023-01-28 13:13:04 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( int64 ) * model . Agent ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Agent )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( int64 ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// AgentFindByToken provides a mock function with given fields: _a0
func ( _m * Store ) AgentFindByToken ( _a0 string ) ( * model . Agent , error ) {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for AgentFindByToken" )
}
2023-01-28 13:13:04 +00:00
var r0 * model . Agent
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string ) ( * model . Agent , error ) ) ; ok {
return rf ( _a0 )
}
2023-01-28 13:13:04 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( string ) * model . Agent ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Agent )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( string ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-04-30 01:40:13 +00:00
// AgentList provides a mock function with given fields: p
func ( _m * Store ) AgentList ( p * model . ListOptions ) ( [ ] * model . Agent , error ) {
ret := _m . Called ( p )
2023-01-28 13:13:04 +00:00
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for AgentList" )
}
2023-01-28 13:13:04 +00:00
var r0 [ ] * model . Agent
2023-03-19 09:43:57 +00:00
var r1 error
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . ListOptions ) ( [ ] * model . Agent , error ) ) ; ok {
return rf ( p )
2023-03-19 09:43:57 +00:00
}
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . ListOptions ) [ ] * model . Agent ) ; ok {
r0 = rf ( p )
2023-01-28 13:13:04 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Agent )
}
}
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( * model . ListOptions ) error ) ; ok {
r1 = rf ( p )
2023-01-28 13:13:04 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// AgentUpdate provides a mock function with given fields: _a0
func ( _m * Store ) AgentUpdate ( _a0 * model . Agent ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for AgentUpdate" )
}
2023-01-28 13:13:04 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Agent ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2022-08-31 23:19:49 +00:00
// Close provides a mock function with given fields:
func ( _m * Store ) Close ( ) error {
ret := _m . Called ( )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for Close" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2024-01-18 21:50:29 +00:00
// ConfigPersist provides a mock function with given fields: _a0
func ( _m * Store ) ConfigPersist ( _a0 * model . Config ) ( * model . Config , error ) {
ret := _m . Called ( _a0 )
2022-08-31 23:19:49 +00:00
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
2024-01-18 21:50:29 +00:00
panic ( "no return value specified for ConfigPersist" )
2023-12-12 20:30:52 +00:00
}
2022-08-31 23:19:49 +00:00
var r0 * model . Config
2023-03-19 09:43:57 +00:00
var r1 error
2024-01-18 21:50:29 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Config ) ( * model . Config , error ) ) ; ok {
return rf ( _a0 )
2023-03-19 09:43:57 +00:00
}
2024-01-18 21:50:29 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Config ) * model . Config ) ; ok {
r0 = rf ( _a0 )
2022-08-31 23:19:49 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Config )
}
}
2024-01-18 21:50:29 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( * model . Config ) error ) ; ok {
r1 = rf ( _a0 )
2022-08-31 23:19:49 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-10-18 01:24:12 +00:00
// ConfigsForPipeline provides a mock function with given fields: pipelineID
func ( _m * Store ) ConfigsForPipeline ( pipelineID int64 ) ( [ ] * model . Config , error ) {
ret := _m . Called ( pipelineID )
2022-08-31 23:19:49 +00:00
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for ConfigsForPipeline" )
}
2022-08-31 23:19:49 +00:00
var r0 [ ] * model . Config
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( int64 ) ( [ ] * model . Config , error ) ) ; ok {
return rf ( pipelineID )
}
2022-08-31 23:19:49 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( int64 ) [ ] * model . Config ) ; ok {
2022-10-18 01:24:12 +00:00
r0 = rf ( pipelineID )
2022-08-31 23:19:49 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Config )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( int64 ) error ) ; ok {
2022-10-18 01:24:12 +00:00
r1 = rf ( pipelineID )
2022-08-31 23:19:49 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-10-18 01:24:12 +00:00
// CreatePipeline provides a mock function with given fields: _a0, _a1
2022-10-28 15:38:53 +00:00
func ( _m * Store ) CreatePipeline ( _a0 * model . Pipeline , _a1 ... * model . Step ) error {
2022-08-31 23:19:49 +00:00
_va := make ( [ ] interface { } , len ( _a1 ) )
for _i := range _a1 {
_va [ _i ] = _a1 [ _i ]
}
var _ca [ ] interface { }
_ca = append ( _ca , _a0 )
_ca = append ( _ca , _va ... )
ret := _m . Called ( _ca ... )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for CreatePipeline" )
}
2022-08-31 23:19:49 +00:00
var r0 error
2022-10-28 15:38:53 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Pipeline , ... * model . Step ) error ) ; ok {
2022-08-31 23:19:49 +00:00
r0 = rf ( _a0 , _a1 ... )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2022-09-05 15:08:51 +00:00
// CreateRedirection provides a mock function with given fields: redirection
func ( _m * Store ) CreateRedirection ( redirection * model . Redirection ) error {
ret := _m . Called ( redirection )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for CreateRedirection" )
}
2022-09-05 15:08:51 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Redirection ) error ) ; ok {
r0 = rf ( redirection )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2022-08-31 23:19:49 +00:00
// CreateRepo provides a mock function with given fields: _a0
func ( _m * Store ) CreateRepo ( _a0 * model . Repo ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for CreateRepo" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// CreateUser provides a mock function with given fields: _a0
func ( _m * Store ) CreateUser ( _a0 * model . User ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for CreateUser" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . User ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// CronCreate provides a mock function with given fields: _a0
func ( _m * Store ) CronCreate ( _a0 * model . Cron ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for CronCreate" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Cron ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// CronDelete provides a mock function with given fields: _a0, _a1
func ( _m * Store ) CronDelete ( _a0 * model . Repo , _a1 int64 ) error {
ret := _m . Called ( _a0 , _a1 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for CronDelete" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , int64 ) error ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// CronFind provides a mock function with given fields: _a0, _a1
func ( _m * Store ) CronFind ( _a0 * model . Repo , _a1 int64 ) ( * model . Cron , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for CronFind" )
}
2022-08-31 23:19:49 +00:00
var r0 * model . Cron
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , int64 ) ( * model . Cron , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
2022-08-31 23:19:49 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , int64 ) * model . Cron ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Cron )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( * model . Repo , int64 ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// CronGetLock provides a mock function with given fields: _a0, _a1
func ( _m * Store ) CronGetLock ( _a0 * model . Cron , _a1 int64 ) ( bool , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for CronGetLock" )
}
2022-08-31 23:19:49 +00:00
var r0 bool
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Cron , int64 ) ( bool , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
2022-08-31 23:19:49 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Cron , int64 ) bool ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
r0 = ret . Get ( 0 ) . ( bool )
}
if rf , ok := ret . Get ( 1 ) . ( func ( * model . Cron , int64 ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-04-30 01:40:13 +00:00
// CronList provides a mock function with given fields: _a0, _a1
func ( _m * Store ) CronList ( _a0 * model . Repo , _a1 * model . ListOptions ) ( [ ] * model . Cron , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-08-31 23:19:49 +00:00
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for CronList" )
}
2022-08-31 23:19:49 +00:00
var r0 [ ] * model . Cron
2023-03-19 09:43:57 +00:00
var r1 error
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , * model . ListOptions ) ( [ ] * model . Cron , error ) ) ; ok {
return rf ( _a0 , _a1 )
2023-03-19 09:43:57 +00:00
}
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , * model . ListOptions ) [ ] * model . Cron ) ; ok {
r0 = rf ( _a0 , _a1 )
2022-08-31 23:19:49 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Cron )
}
}
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( * model . Repo , * model . ListOptions ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
2022-08-31 23:19:49 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// CronListNextExecute provides a mock function with given fields: _a0, _a1
2023-03-19 21:42:21 +00:00
func ( _m * Store ) CronListNextExecute ( _a0 int64 , _a1 int64 ) ( [ ] * model . Cron , error ) {
2022-08-31 23:19:49 +00:00
ret := _m . Called ( _a0 , _a1 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for CronListNextExecute" )
}
2022-08-31 23:19:49 +00:00
var r0 [ ] * model . Cron
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( int64 , int64 ) ( [ ] * model . Cron , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
2022-08-31 23:19:49 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( int64 , int64 ) [ ] * model . Cron ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Cron )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( int64 , int64 ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// CronUpdate provides a mock function with given fields: _a0, _a1
func ( _m * Store ) CronUpdate ( _a0 * model . Repo , _a1 * model . Cron ) error {
ret := _m . Called ( _a0 , _a1 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for CronUpdate" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , * model . Cron ) error ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2023-12-12 20:30:52 +00:00
// DeletePipeline provides a mock function with given fields: _a0
func ( _m * Store ) DeletePipeline ( _a0 * model . Pipeline ) error {
ret := _m . Called ( _a0 )
if len ( ret ) == 0 {
panic ( "no return value specified for DeletePipeline" )
}
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Pipeline ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2022-08-31 23:19:49 +00:00
// DeleteRepo provides a mock function with given fields: _a0
func ( _m * Store ) DeleteRepo ( _a0 * model . Repo ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for DeleteRepo" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// DeleteUser provides a mock function with given fields: _a0
func ( _m * Store ) DeleteUser ( _a0 * model . User ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for DeleteUser" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . User ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2023-04-30 01:40:13 +00:00
// GetActivePipelineList provides a mock function with given fields: repo
func ( _m * Store ) GetActivePipelineList ( repo * model . Repo ) ( [ ] * model . Pipeline , error ) {
ret := _m . Called ( repo )
2022-08-31 23:19:49 +00:00
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetActivePipelineList" )
}
2022-10-18 01:24:12 +00:00
var r0 [ ] * model . Pipeline
2023-03-19 09:43:57 +00:00
var r1 error
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo ) ( [ ] * model . Pipeline , error ) ) ; ok {
return rf ( repo )
2023-03-19 09:43:57 +00:00
}
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo ) [ ] * model . Pipeline ) ; ok {
r0 = rf ( repo )
2022-08-31 23:19:49 +00:00
} else {
if ret . Get ( 0 ) != nil {
2022-10-18 01:24:12 +00:00
r0 = ret . Get ( 0 ) . ( [ ] * model . Pipeline )
2022-08-31 23:19:49 +00:00
}
}
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( * model . Repo ) error ) ; ok {
r1 = rf ( repo )
2022-08-31 23:19:49 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-10-18 01:24:12 +00:00
// GetPipeline provides a mock function with given fields: _a0
func ( _m * Store ) GetPipeline ( _a0 int64 ) ( * model . Pipeline , error ) {
2022-08-31 23:19:49 +00:00
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetPipeline" )
}
2022-10-18 01:24:12 +00:00
var r0 * model . Pipeline
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( int64 ) ( * model . Pipeline , error ) ) ; ok {
return rf ( _a0 )
}
2022-10-18 01:24:12 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( int64 ) * model . Pipeline ) ; ok {
2022-08-31 23:19:49 +00:00
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
2022-10-18 01:24:12 +00:00
r0 = ret . Get ( 0 ) . ( * model . Pipeline )
2022-08-31 23:19:49 +00:00
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( int64 ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-10-18 01:24:12 +00:00
// GetPipelineCount provides a mock function with given fields:
func ( _m * Store ) GetPipelineCount ( ) ( int64 , error ) {
2022-08-31 23:19:49 +00:00
ret := _m . Called ( )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetPipelineCount" )
}
2022-08-31 23:19:49 +00:00
var r0 int64
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) ( int64 , error ) ) ; ok {
return rf ( )
}
2022-08-31 23:19:49 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( ) int64 ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Get ( 0 ) . ( int64 )
}
if rf , ok := ret . Get ( 1 ) . ( func ( ) error ) ; ok {
r1 = rf ( )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-10-18 01:24:12 +00:00
// GetPipelineLast provides a mock function with given fields: _a0, _a1
func ( _m * Store ) GetPipelineLast ( _a0 * model . Repo , _a1 string ) ( * model . Pipeline , error ) {
2022-08-31 23:19:49 +00:00
ret := _m . Called ( _a0 , _a1 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetPipelineLast" )
}
2022-10-18 01:24:12 +00:00
var r0 * model . Pipeline
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , string ) ( * model . Pipeline , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
2022-10-18 01:24:12 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , string ) * model . Pipeline ) ; ok {
2022-08-31 23:19:49 +00:00
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
2022-10-18 01:24:12 +00:00
r0 = ret . Get ( 0 ) . ( * model . Pipeline )
2022-08-31 23:19:49 +00:00
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( * model . Repo , string ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-10-18 01:24:12 +00:00
// GetPipelineLastBefore provides a mock function with given fields: _a0, _a1, _a2
func ( _m * Store ) GetPipelineLastBefore ( _a0 * model . Repo , _a1 string , _a2 int64 ) ( * model . Pipeline , error ) {
2022-08-31 23:19:49 +00:00
ret := _m . Called ( _a0 , _a1 , _a2 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetPipelineLastBefore" )
}
2022-10-18 01:24:12 +00:00
var r0 * model . Pipeline
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , string , int64 ) ( * model . Pipeline , error ) ) ; ok {
return rf ( _a0 , _a1 , _a2 )
}
2022-10-18 01:24:12 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , string , int64 ) * model . Pipeline ) ; ok {
2022-08-31 23:19:49 +00:00
r0 = rf ( _a0 , _a1 , _a2 )
} else {
if ret . Get ( 0 ) != nil {
2022-10-18 01:24:12 +00:00
r0 = ret . Get ( 0 ) . ( * model . Pipeline )
2022-08-31 23:19:49 +00:00
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( * model . Repo , string , int64 ) error ) ; ok {
r1 = rf ( _a0 , _a1 , _a2 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-10-18 01:24:12 +00:00
// GetPipelineList provides a mock function with given fields: _a0, _a1
2023-04-30 01:40:13 +00:00
func ( _m * Store ) GetPipelineList ( _a0 * model . Repo , _a1 * model . ListOptions ) ( [ ] * model . Pipeline , error ) {
2022-08-31 23:19:49 +00:00
ret := _m . Called ( _a0 , _a1 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetPipelineList" )
}
2022-10-18 01:24:12 +00:00
var r0 [ ] * model . Pipeline
2023-03-19 09:43:57 +00:00
var r1 error
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , * model . ListOptions ) ( [ ] * model . Pipeline , error ) ) ; ok {
2023-03-19 09:43:57 +00:00
return rf ( _a0 , _a1 )
}
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , * model . ListOptions ) [ ] * model . Pipeline ) ; ok {
2022-08-31 23:19:49 +00:00
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
2022-10-18 01:24:12 +00:00
r0 = ret . Get ( 0 ) . ( [ ] * model . Pipeline )
2022-08-31 23:19:49 +00:00
}
}
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( * model . Repo , * model . ListOptions ) error ) ; ok {
2022-08-31 23:19:49 +00:00
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-10-18 01:24:12 +00:00
// GetPipelineNumber provides a mock function with given fields: _a0, _a1
func ( _m * Store ) GetPipelineNumber ( _a0 * model . Repo , _a1 int64 ) ( * model . Pipeline , error ) {
2022-08-31 23:19:49 +00:00
ret := _m . Called ( _a0 , _a1 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetPipelineNumber" )
}
2022-10-18 01:24:12 +00:00
var r0 * model . Pipeline
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , int64 ) ( * model . Pipeline , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
2022-10-18 01:24:12 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , int64 ) * model . Pipeline ) ; ok {
2022-08-31 23:19:49 +00:00
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
2022-10-18 01:24:12 +00:00
r0 = ret . Get ( 0 ) . ( * model . Pipeline )
2022-08-31 23:19:49 +00:00
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( * model . Repo , int64 ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-10-18 01:24:12 +00:00
// GetPipelineQueue provides a mock function with given fields:
func ( _m * Store ) GetPipelineQueue ( ) ( [ ] * model . Feed , error ) {
2022-08-31 23:19:49 +00:00
ret := _m . Called ( )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetPipelineQueue" )
}
2022-08-31 23:19:49 +00:00
var r0 [ ] * model . Feed
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) ( [ ] * model . Feed , error ) ) ; ok {
return rf ( )
}
2022-08-31 23:19:49 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( ) [ ] * model . Feed ) ; ok {
r0 = rf ( )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Feed )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( ) error ) ; ok {
r1 = rf ( )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// GetRepo provides a mock function with given fields: _a0
func ( _m * Store ) GetRepo ( _a0 int64 ) ( * model . Repo , error ) {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetRepo" )
}
2022-08-31 23:19:49 +00:00
var r0 * model . Repo
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( int64 ) ( * model . Repo , error ) ) ; ok {
return rf ( _a0 )
}
2022-08-31 23:19:49 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( int64 ) * model . Repo ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Repo )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( int64 ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// GetRepoCount provides a mock function with given fields:
func ( _m * Store ) GetRepoCount ( ) ( int64 , error ) {
ret := _m . Called ( )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetRepoCount" )
}
2022-08-31 23:19:49 +00:00
var r0 int64
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) ( int64 , error ) ) ; ok {
return rf ( )
}
2022-08-31 23:19:49 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( ) int64 ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Get ( 0 ) . ( int64 )
}
if rf , ok := ret . Get ( 1 ) . ( func ( ) error ) ; ok {
r1 = rf ( )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-11-04 23:35:06 +00:00
// GetRepoForgeID provides a mock function with given fields: _a0
2022-11-15 14:01:23 +00:00
func ( _m * Store ) GetRepoForgeID ( _a0 model . ForgeRemoteID ) ( * model . Repo , error ) {
2022-08-31 23:19:49 +00:00
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetRepoForgeID" )
}
2022-08-31 23:19:49 +00:00
var r0 * model . Repo
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( model . ForgeRemoteID ) ( * model . Repo , error ) ) ; ok {
return rf ( _a0 )
}
2022-11-15 14:01:23 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( model . ForgeRemoteID ) * model . Repo ) ; ok {
2022-08-31 23:19:49 +00:00
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Repo )
}
}
2022-11-15 14:01:23 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( model . ForgeRemoteID ) error ) ; ok {
2022-08-31 23:19:49 +00:00
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-11-04 23:35:06 +00:00
// GetRepoName provides a mock function with given fields: _a0
func ( _m * Store ) GetRepoName ( _a0 string ) ( * model . Repo , error ) {
ret := _m . Called ( _a0 )
2022-09-05 15:08:51 +00:00
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetRepoName" )
}
2022-09-05 15:08:51 +00:00
var r0 * model . Repo
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string ) ( * model . Repo , error ) ) ; ok {
return rf ( _a0 )
}
2022-11-04 23:35:06 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( string ) * model . Repo ) ; ok {
r0 = rf ( _a0 )
2022-09-05 15:08:51 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Repo )
}
}
2022-11-04 23:35:06 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( string ) error ) ; ok {
r1 = rf ( _a0 )
2022-09-05 15:08:51 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-11-15 14:01:23 +00:00
// GetRepoNameFallback provides a mock function with given fields: remoteID, fullName
func ( _m * Store ) GetRepoNameFallback ( remoteID model . ForgeRemoteID , fullName string ) ( * model . Repo , error ) {
ret := _m . Called ( remoteID , fullName )
2022-09-05 15:08:51 +00:00
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetRepoNameFallback" )
}
2022-09-05 15:08:51 +00:00
var r0 * model . Repo
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( model . ForgeRemoteID , string ) ( * model . Repo , error ) ) ; ok {
return rf ( remoteID , fullName )
}
2022-11-15 14:01:23 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( model . ForgeRemoteID , string ) * model . Repo ) ; ok {
r0 = rf ( remoteID , fullName )
2022-09-05 15:08:51 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Repo )
}
}
2022-11-15 14:01:23 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( model . ForgeRemoteID , string ) error ) ; ok {
r1 = rf ( remoteID , fullName )
2022-09-05 15:08:51 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-08-31 23:19:49 +00:00
// GetUser provides a mock function with given fields: _a0
func ( _m * Store ) GetUser ( _a0 int64 ) ( * model . User , error ) {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetUser" )
}
2022-08-31 23:19:49 +00:00
var r0 * model . User
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( int64 ) ( * model . User , error ) ) ; ok {
return rf ( _a0 )
}
2022-08-31 23:19:49 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( int64 ) * model . User ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . User )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( int64 ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// GetUserCount provides a mock function with given fields:
func ( _m * Store ) GetUserCount ( ) ( int64 , error ) {
ret := _m . Called ( )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetUserCount" )
}
2022-08-31 23:19:49 +00:00
var r0 int64
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) ( int64 , error ) ) ; ok {
return rf ( )
}
2022-08-31 23:19:49 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( ) int64 ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Get ( 0 ) . ( int64 )
}
if rf , ok := ret . Get ( 1 ) . ( func ( ) error ) ; ok {
r1 = rf ( )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-04-30 01:40:13 +00:00
// GetUserList provides a mock function with given fields: p
func ( _m * Store ) GetUserList ( p * model . ListOptions ) ( [ ] * model . User , error ) {
ret := _m . Called ( p )
2022-08-31 23:19:49 +00:00
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetUserList" )
}
2022-08-31 23:19:49 +00:00
var r0 [ ] * model . User
2023-03-19 09:43:57 +00:00
var r1 error
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . ListOptions ) ( [ ] * model . User , error ) ) ; ok {
return rf ( p )
2023-03-19 09:43:57 +00:00
}
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . ListOptions ) [ ] * model . User ) ; ok {
r0 = rf ( p )
2022-08-31 23:19:49 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . User )
}
}
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( * model . ListOptions ) error ) ; ok {
r1 = rf ( p )
2022-08-31 23:19:49 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// GetUserLogin provides a mock function with given fields: _a0
func ( _m * Store ) GetUserLogin ( _a0 string ) ( * model . User , error ) {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetUserLogin" )
}
2022-08-31 23:19:49 +00:00
var r0 * model . User
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string ) ( * model . User , error ) ) ; ok {
return rf ( _a0 )
}
2022-08-31 23:19:49 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( string ) * model . User ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . User )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( string ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-05-11 03:19:35 +00:00
// GetUserRemoteID provides a mock function with given fields: _a0, _a1
func ( _m * Store ) GetUserRemoteID ( _a0 model . ForgeRemoteID , _a1 string ) ( * model . User , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetUserRemoteID" )
}
2023-05-11 03:19:35 +00:00
var r0 * model . User
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( model . ForgeRemoteID , string ) ( * model . User , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( model . ForgeRemoteID , string ) * model . User ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . User )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( model . ForgeRemoteID , string ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-08-31 23:19:49 +00:00
// GlobalSecretFind provides a mock function with given fields: _a0
func ( _m * Store ) GlobalSecretFind ( _a0 string ) ( * model . Secret , error ) {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for GlobalSecretFind" )
}
2022-08-31 23:19:49 +00:00
var r0 * model . Secret
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string ) ( * model . Secret , error ) ) ; ok {
return rf ( _a0 )
}
2022-08-31 23:19:49 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( string ) * model . Secret ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Secret )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( string ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-04-30 01:40:13 +00:00
// GlobalSecretList provides a mock function with given fields: _a0
func ( _m * Store ) GlobalSecretList ( _a0 * model . ListOptions ) ( [ ] * model . Secret , error ) {
ret := _m . Called ( _a0 )
2022-08-31 23:19:49 +00:00
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for GlobalSecretList" )
}
2022-08-31 23:19:49 +00:00
var r0 [ ] * model . Secret
2023-03-19 09:43:57 +00:00
var r1 error
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . ListOptions ) ( [ ] * model . Secret , error ) ) ; ok {
return rf ( _a0 )
2023-03-19 09:43:57 +00:00
}
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . ListOptions ) [ ] * model . Secret ) ; ok {
r0 = rf ( _a0 )
2022-08-31 23:19:49 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Secret )
}
}
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( * model . ListOptions ) error ) ; ok {
r1 = rf ( _a0 )
2022-08-31 23:19:49 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-09-05 15:08:51 +00:00
// HasRedirectionForRepo provides a mock function with given fields: _a0, _a1
func ( _m * Store ) HasRedirectionForRepo ( _a0 int64 , _a1 string ) ( bool , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for HasRedirectionForRepo" )
}
2022-09-05 15:08:51 +00:00
var r0 bool
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( int64 , string ) ( bool , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
2022-09-05 15:08:51 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( int64 , string ) bool ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
r0 = ret . Get ( 0 ) . ( bool )
}
if rf , ok := ret . Get ( 1 ) . ( func ( int64 , string ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-06-06 07:52:08 +00:00
// LogAppend provides a mock function with given fields: logEntry
func ( _m * Store ) LogAppend ( logEntry * model . LogEntry ) error {
ret := _m . Called ( logEntry )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for LogAppend" )
}
2023-06-06 07:52:08 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . LogEntry ) error ) ; ok {
r0 = rf ( logEntry )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// LogDelete provides a mock function with given fields: _a0
func ( _m * Store ) LogDelete ( _a0 * model . Step ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for LogDelete" )
}
2023-06-06 07:52:08 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Step ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2022-08-31 23:19:49 +00:00
// LogFind provides a mock function with given fields: _a0
2023-06-06 07:52:08 +00:00
func ( _m * Store ) LogFind ( _a0 * model . Step ) ( [ ] * model . LogEntry , error ) {
2022-08-31 23:19:49 +00:00
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for LogFind" )
}
2023-06-06 07:52:08 +00:00
var r0 [ ] * model . LogEntry
2023-03-19 09:43:57 +00:00
var r1 error
2023-06-06 07:52:08 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Step ) ( [ ] * model . LogEntry , error ) ) ; ok {
2023-03-19 09:43:57 +00:00
return rf ( _a0 )
}
2023-06-06 07:52:08 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Step ) [ ] * model . LogEntry ) ; ok {
2022-08-31 23:19:49 +00:00
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
2023-06-06 07:52:08 +00:00
r0 = ret . Get ( 0 ) . ( [ ] * model . LogEntry )
2022-08-31 23:19:49 +00:00
}
}
2022-10-28 15:38:53 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( * model . Step ) error ) ; ok {
2022-08-31 23:19:49 +00:00
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-11-28 09:31:54 +00:00
// Migrate provides a mock function with given fields: _a0
func ( _m * Store ) Migrate ( _a0 bool ) error {
ret := _m . Called ( _a0 )
2022-08-31 23:19:49 +00:00
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for Migrate" )
}
2022-08-31 23:19:49 +00:00
var r0 error
2023-11-28 09:31:54 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( bool ) error ) ; ok {
r0 = rf ( _a0 )
2022-08-31 23:19:49 +00:00
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2023-07-21 17:45:32 +00:00
// OrgCreate provides a mock function with given fields: _a0
func ( _m * Store ) OrgCreate ( _a0 * model . Org ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for OrgCreate" )
}
2023-07-21 17:45:32 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Org ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// OrgDelete provides a mock function with given fields: _a0
func ( _m * Store ) OrgDelete ( _a0 int64 ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for OrgDelete" )
}
2023-07-21 17:45:32 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( int64 ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// OrgFindByName provides a mock function with given fields: _a0
func ( _m * Store ) OrgFindByName ( _a0 string ) ( * model . Org , error ) {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for OrgFindByName" )
}
2023-07-21 17:45:32 +00:00
var r0 * model . Org
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string ) ( * model . Org , error ) ) ; ok {
return rf ( _a0 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( string ) * model . Org ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Org )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( string ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// OrgGet provides a mock function with given fields: _a0
func ( _m * Store ) OrgGet ( _a0 int64 ) ( * model . Org , error ) {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for OrgGet" )
}
2023-07-21 17:45:32 +00:00
var r0 * model . Org
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( int64 ) ( * model . Org , error ) ) ; ok {
return rf ( _a0 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( int64 ) * model . Org ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Org )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( int64 ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-08-28 09:15:16 +00:00
// OrgList provides a mock function with given fields: _a0
func ( _m * Store ) OrgList ( _a0 * model . ListOptions ) ( [ ] * model . Org , error ) {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for OrgList" )
}
2023-08-28 09:15:16 +00:00
var r0 [ ] * model . Org
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . ListOptions ) ( [ ] * model . Org , error ) ) ; ok {
return rf ( _a0 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( * model . ListOptions ) [ ] * model . Org ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Org )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( * model . ListOptions ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-21 17:45:32 +00:00
// OrgRepoList provides a mock function with given fields: _a0, _a1
func ( _m * Store ) OrgRepoList ( _a0 * model . Org , _a1 * model . ListOptions ) ( [ ] * model . Repo , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for OrgRepoList" )
}
2023-07-21 17:45:32 +00:00
var r0 [ ] * model . Repo
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Org , * model . ListOptions ) ( [ ] * model . Repo , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Org , * model . ListOptions ) [ ] * model . Repo ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Repo )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( * model . Org , * model . ListOptions ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-08-31 23:19:49 +00:00
// OrgSecretFind provides a mock function with given fields: _a0, _a1
2023-07-21 17:45:32 +00:00
func ( _m * Store ) OrgSecretFind ( _a0 int64 , _a1 string ) ( * model . Secret , error ) {
2022-08-31 23:19:49 +00:00
ret := _m . Called ( _a0 , _a1 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for OrgSecretFind" )
}
2022-08-31 23:19:49 +00:00
var r0 * model . Secret
2023-03-19 09:43:57 +00:00
var r1 error
2023-07-21 17:45:32 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( int64 , string ) ( * model . Secret , error ) ) ; ok {
2023-03-19 09:43:57 +00:00
return rf ( _a0 , _a1 )
}
2023-07-21 17:45:32 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( int64 , string ) * model . Secret ) ; ok {
2022-08-31 23:19:49 +00:00
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Secret )
}
}
2023-07-21 17:45:32 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( int64 , string ) error ) ; ok {
2022-08-31 23:19:49 +00:00
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-04-30 01:40:13 +00:00
// OrgSecretList provides a mock function with given fields: _a0, _a1
2023-07-21 17:45:32 +00:00
func ( _m * Store ) OrgSecretList ( _a0 int64 , _a1 * model . ListOptions ) ( [ ] * model . Secret , error ) {
2023-04-30 01:40:13 +00:00
ret := _m . Called ( _a0 , _a1 )
2022-08-31 23:19:49 +00:00
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for OrgSecretList" )
}
2022-08-31 23:19:49 +00:00
var r0 [ ] * model . Secret
2023-03-19 09:43:57 +00:00
var r1 error
2023-07-21 17:45:32 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( int64 , * model . ListOptions ) ( [ ] * model . Secret , error ) ) ; ok {
2023-04-30 01:40:13 +00:00
return rf ( _a0 , _a1 )
2023-03-19 09:43:57 +00:00
}
2023-07-21 17:45:32 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( int64 , * model . ListOptions ) [ ] * model . Secret ) ; ok {
2023-04-30 01:40:13 +00:00
r0 = rf ( _a0 , _a1 )
2022-08-31 23:19:49 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Secret )
}
}
2023-07-21 17:45:32 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( int64 , * model . ListOptions ) error ) ; ok {
2023-04-30 01:40:13 +00:00
r1 = rf ( _a0 , _a1 )
2022-08-31 23:19:49 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-21 17:45:32 +00:00
// OrgUpdate provides a mock function with given fields: _a0
func ( _m * Store ) OrgUpdate ( _a0 * model . Org ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for OrgUpdate" )
}
2023-07-21 17:45:32 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Org ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2022-08-31 23:19:49 +00:00
// PermFind provides a mock function with given fields: user, repo
func ( _m * Store ) PermFind ( user * model . User , repo * model . Repo ) ( * model . Perm , error ) {
ret := _m . Called ( user , repo )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for PermFind" )
}
2022-08-31 23:19:49 +00:00
var r0 * model . Perm
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . User , * model . Repo ) ( * model . Perm , error ) ) ; ok {
return rf ( user , repo )
}
2022-08-31 23:19:49 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . User , * model . Repo ) * model . Perm ) ; ok {
r0 = rf ( user , repo )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Perm )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( * model . User , * model . Repo ) error ) ; ok {
r1 = rf ( user , repo )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// PermUpsert provides a mock function with given fields: perm
func ( _m * Store ) PermUpsert ( perm * model . Perm ) error {
ret := _m . Called ( perm )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for PermUpsert" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Perm ) error ) ; ok {
r0 = rf ( perm )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// Ping provides a mock function with given fields:
func ( _m * Store ) Ping ( ) error {
ret := _m . Called ( )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for Ping" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2022-10-18 01:24:12 +00:00
// PipelineConfigCreate provides a mock function with given fields: _a0
func ( _m * Store ) PipelineConfigCreate ( _a0 * model . PipelineConfig ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for PipelineConfigCreate" )
}
2022-10-18 01:24:12 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . PipelineConfig ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2022-08-31 23:19:49 +00:00
// RegistryCreate provides a mock function with given fields: _a0
func ( _m * Store ) RegistryCreate ( _a0 * model . Registry ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for RegistryCreate" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Registry ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// RegistryDelete provides a mock function with given fields: repo, addr
func ( _m * Store ) RegistryDelete ( repo * model . Repo , addr string ) error {
ret := _m . Called ( repo , addr )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for RegistryDelete" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , string ) error ) ; ok {
r0 = rf ( repo , addr )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// RegistryFind provides a mock function with given fields: _a0, _a1
func ( _m * Store ) RegistryFind ( _a0 * model . Repo , _a1 string ) ( * model . Registry , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for RegistryFind" )
}
2022-08-31 23:19:49 +00:00
var r0 * model . Registry
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , string ) ( * model . Registry , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
2022-08-31 23:19:49 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , string ) * model . Registry ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Registry )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( * model . Repo , string ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-04-30 01:40:13 +00:00
// RegistryList provides a mock function with given fields: _a0, _a1
func ( _m * Store ) RegistryList ( _a0 * model . Repo , _a1 * model . ListOptions ) ( [ ] * model . Registry , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-08-31 23:19:49 +00:00
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for RegistryList" )
}
2022-08-31 23:19:49 +00:00
var r0 [ ] * model . Registry
2023-03-19 09:43:57 +00:00
var r1 error
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , * model . ListOptions ) ( [ ] * model . Registry , error ) ) ; ok {
return rf ( _a0 , _a1 )
2023-03-19 09:43:57 +00:00
}
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , * model . ListOptions ) [ ] * model . Registry ) ; ok {
r0 = rf ( _a0 , _a1 )
2022-08-31 23:19:49 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Registry )
}
}
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( * model . Repo , * model . ListOptions ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
2022-08-31 23:19:49 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RegistryUpdate provides a mock function with given fields: _a0
func ( _m * Store ) RegistryUpdate ( _a0 * model . Registry ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for RegistryUpdate" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Registry ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2023-04-30 01:40:13 +00:00
// RepoList provides a mock function with given fields: user, owned, active
func ( _m * Store ) RepoList ( user * model . User , owned bool , active bool ) ( [ ] * model . Repo , error ) {
ret := _m . Called ( user , owned , active )
2022-08-31 23:19:49 +00:00
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for RepoList" )
}
2022-08-31 23:19:49 +00:00
var r0 [ ] * model . Repo
2023-03-19 09:43:57 +00:00
var r1 error
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . User , bool , bool ) ( [ ] * model . Repo , error ) ) ; ok {
return rf ( user , owned , active )
2023-03-19 09:43:57 +00:00
}
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . User , bool , bool ) [ ] * model . Repo ) ; ok {
r0 = rf ( user , owned , active )
2022-08-31 23:19:49 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Repo )
}
}
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( * model . User , bool , bool ) error ) ; ok {
r1 = rf ( user , owned , active )
2022-08-31 23:19:49 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-09-08 10:26:20 +00:00
// RepoListAll provides a mock function with given fields: active, p
func ( _m * Store ) RepoListAll ( active bool , p * model . ListOptions ) ( [ ] * model . Repo , error ) {
ret := _m . Called ( active , p )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for RepoListAll" )
}
2023-09-08 10:26:20 +00:00
var r0 [ ] * model . Repo
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( bool , * model . ListOptions ) ( [ ] * model . Repo , error ) ) ; ok {
return rf ( active , p )
}
if rf , ok := ret . Get ( 0 ) . ( func ( bool , * model . ListOptions ) [ ] * model . Repo ) ; ok {
r0 = rf ( active , p )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Repo )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( bool , * model . ListOptions ) error ) ; ok {
r1 = rf ( active , p )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-08-31 23:19:49 +00:00
// RepoListLatest provides a mock function with given fields: _a0
func ( _m * Store ) RepoListLatest ( _a0 * model . User ) ( [ ] * model . Feed , error ) {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for RepoListLatest" )
}
2022-08-31 23:19:49 +00:00
var r0 [ ] * model . Feed
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . User ) ( [ ] * model . Feed , error ) ) ; ok {
return rf ( _a0 )
}
2022-08-31 23:19:49 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . User ) [ ] * model . Feed ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Feed )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( * model . User ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// SecretCreate provides a mock function with given fields: _a0
func ( _m * Store ) SecretCreate ( _a0 * model . Secret ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for SecretCreate" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Secret ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// SecretDelete provides a mock function with given fields: _a0
func ( _m * Store ) SecretDelete ( _a0 * model . Secret ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for SecretDelete" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Secret ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// SecretFind provides a mock function with given fields: _a0, _a1
func ( _m * Store ) SecretFind ( _a0 * model . Repo , _a1 string ) ( * model . Secret , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for SecretFind" )
}
2022-08-31 23:19:49 +00:00
var r0 * model . Secret
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , string ) ( * model . Secret , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
2022-08-31 23:19:49 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , string ) * model . Secret ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Secret )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( * model . Repo , string ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-04-30 01:40:13 +00:00
// SecretList provides a mock function with given fields: _a0, _a1, _a2
func ( _m * Store ) SecretList ( _a0 * model . Repo , _a1 bool , _a2 * model . ListOptions ) ( [ ] * model . Secret , error ) {
ret := _m . Called ( _a0 , _a1 , _a2 )
2022-08-31 23:19:49 +00:00
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for SecretList" )
}
2022-08-31 23:19:49 +00:00
var r0 [ ] * model . Secret
2023-03-19 09:43:57 +00:00
var r1 error
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , bool , * model . ListOptions ) ( [ ] * model . Secret , error ) ) ; ok {
return rf ( _a0 , _a1 , _a2 )
2023-03-19 09:43:57 +00:00
}
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo , bool , * model . ListOptions ) [ ] * model . Secret ) ; ok {
r0 = rf ( _a0 , _a1 , _a2 )
2022-08-31 23:19:49 +00:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Secret )
}
}
2023-04-30 01:40:13 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( * model . Repo , bool , * model . ListOptions ) error ) ; ok {
r1 = rf ( _a0 , _a1 , _a2 )
2022-08-31 23:19:49 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-03-19 09:43:57 +00:00
// SecretListAll provides a mock function with given fields:
2023-01-12 19:59:07 +00:00
func ( _m * Store ) SecretListAll ( ) ( [ ] * model . Secret , error ) {
ret := _m . Called ( )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for SecretListAll" )
}
2023-01-12 19:59:07 +00:00
var r0 [ ] * model . Secret
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) ( [ ] * model . Secret , error ) ) ; ok {
return rf ( )
}
2023-01-12 19:59:07 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( ) [ ] * model . Secret ) ; ok {
r0 = rf ( )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Secret )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( ) error ) ; ok {
r1 = rf ( )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-08-31 23:19:49 +00:00
// SecretUpdate provides a mock function with given fields: _a0
func ( _m * Store ) SecretUpdate ( _a0 * model . Secret ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for SecretUpdate" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Secret ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2023-03-19 09:43:57 +00:00
// ServerConfigDelete provides a mock function with given fields: _a0
func ( _m * Store ) ServerConfigDelete ( _a0 string ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for ServerConfigDelete" )
}
2023-03-19 09:43:57 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( string ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2022-08-31 23:19:49 +00:00
// ServerConfigGet provides a mock function with given fields: _a0
func ( _m * Store ) ServerConfigGet ( _a0 string ) ( string , error ) {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for ServerConfigGet" )
}
2022-08-31 23:19:49 +00:00
var r0 string
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string ) ( string , error ) ) ; ok {
return rf ( _a0 )
}
2022-08-31 23:19:49 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( string ) string ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Get ( 0 ) . ( string )
}
if rf , ok := ret . Get ( 1 ) . ( func ( string ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// ServerConfigSet provides a mock function with given fields: _a0, _a1
2023-03-19 21:42:21 +00:00
func ( _m * Store ) ServerConfigSet ( _a0 string , _a1 string ) error {
2022-08-31 23:19:49 +00:00
ret := _m . Called ( _a0 , _a1 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for ServerConfigSet" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( string , string ) error ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2023-06-06 07:52:08 +00:00
// StepByUUID provides a mock function with given fields: _a0
func ( _m * Store ) StepByUUID ( _a0 string ) ( * model . Step , error ) {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for StepByUUID" )
}
2023-06-06 07:52:08 +00:00
var r0 * model . Step
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string ) ( * model . Step , error ) ) ; ok {
return rf ( _a0 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( string ) * model . Step ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Step )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( string ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-10-28 15:38:53 +00:00
// StepChild provides a mock function with given fields: _a0, _a1, _a2
func ( _m * Store ) StepChild ( _a0 * model . Pipeline , _a1 int , _a2 string ) ( * model . Step , error ) {
ret := _m . Called ( _a0 , _a1 , _a2 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for StepChild" )
}
2022-10-28 15:38:53 +00:00
var r0 * model . Step
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Pipeline , int , string ) ( * model . Step , error ) ) ; ok {
return rf ( _a0 , _a1 , _a2 )
}
2022-10-28 15:38:53 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Pipeline , int , string ) * model . Step ) ; ok {
r0 = rf ( _a0 , _a1 , _a2 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Step )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( * model . Pipeline , int , string ) error ) ; ok {
r1 = rf ( _a0 , _a1 , _a2 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// StepFind provides a mock function with given fields: _a0, _a1
func ( _m * Store ) StepFind ( _a0 * model . Pipeline , _a1 int ) ( * model . Step , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for StepFind" )
}
2022-10-28 15:38:53 +00:00
var r0 * model . Step
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Pipeline , int ) ( * model . Step , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
2022-10-28 15:38:53 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Pipeline , int ) * model . Step ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Step )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( * model . Pipeline , int ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// StepList provides a mock function with given fields: _a0
func ( _m * Store ) StepList ( _a0 * model . Pipeline ) ( [ ] * model . Step , error ) {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for StepList" )
}
2022-10-28 15:38:53 +00:00
var r0 [ ] * model . Step
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Pipeline ) ( [ ] * model . Step , error ) ) ; ok {
return rf ( _a0 )
}
2022-10-28 15:38:53 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Pipeline ) [ ] * model . Step ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Step )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( * model . Pipeline ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-06-27 16:01:18 +00:00
// StepListFromWorkflowFind provides a mock function with given fields: _a0
func ( _m * Store ) StepListFromWorkflowFind ( _a0 * model . Workflow ) ( [ ] * model . Step , error ) {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for StepListFromWorkflowFind" )
}
2023-06-27 16:01:18 +00:00
var r0 [ ] * model . Step
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Workflow ) ( [ ] * model . Step , error ) ) ; ok {
return rf ( _a0 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Workflow ) [ ] * model . Step ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Step )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( * model . Workflow ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-10-28 15:38:53 +00:00
// StepLoad provides a mock function with given fields: _a0
func ( _m * Store ) StepLoad ( _a0 int64 ) ( * model . Step , error ) {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for StepLoad" )
}
2022-10-28 15:38:53 +00:00
var r0 * model . Step
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( int64 ) ( * model . Step , error ) ) ; ok {
return rf ( _a0 )
}
2022-10-28 15:38:53 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( int64 ) * model . Step ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Step )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( int64 ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// StepUpdate provides a mock function with given fields: _a0
func ( _m * Store ) StepUpdate ( _a0 * model . Step ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for StepUpdate" )
}
2022-10-28 15:38:53 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Step ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2022-08-31 23:19:49 +00:00
// TaskDelete provides a mock function with given fields: _a0
func ( _m * Store ) TaskDelete ( _a0 string ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for TaskDelete" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( string ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// TaskInsert provides a mock function with given fields: _a0
func ( _m * Store ) TaskInsert ( _a0 * model . Task ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for TaskInsert" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Task ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// TaskList provides a mock function with given fields:
func ( _m * Store ) TaskList ( ) ( [ ] * model . Task , error ) {
ret := _m . Called ( )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for TaskList" )
}
2022-08-31 23:19:49 +00:00
var r0 [ ] * model . Task
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) ( [ ] * model . Task , error ) ) ; ok {
return rf ( )
}
2022-08-31 23:19:49 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( ) [ ] * model . Task ) ; ok {
r0 = rf ( )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Task )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( ) error ) ; ok {
r1 = rf ( )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-10-18 01:24:12 +00:00
// UpdatePipeline provides a mock function with given fields: _a0
func ( _m * Store ) UpdatePipeline ( _a0 * model . Pipeline ) error {
2022-08-31 23:19:49 +00:00
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for UpdatePipeline" )
}
2022-08-31 23:19:49 +00:00
var r0 error
2022-10-18 01:24:12 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Pipeline ) error ) ; ok {
2022-08-31 23:19:49 +00:00
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// UpdateRepo provides a mock function with given fields: _a0
func ( _m * Store ) UpdateRepo ( _a0 * model . Repo ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for UpdateRepo" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Repo ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// UpdateUser provides a mock function with given fields: _a0
func ( _m * Store ) UpdateUser ( _a0 * model . User ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for UpdateUser" )
}
2022-08-31 23:19:49 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . User ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// UserFeed provides a mock function with given fields: _a0
func ( _m * Store ) UserFeed ( _a0 * model . User ) ( [ ] * model . Feed , error ) {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for UserFeed" )
}
2022-08-31 23:19:49 +00:00
var r0 [ ] * model . Feed
2023-03-19 09:43:57 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . User ) ( [ ] * model . Feed , error ) ) ; ok {
return rf ( _a0 )
}
2022-08-31 23:19:49 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( * model . User ) [ ] * model . Feed ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Feed )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( * model . User ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-06-27 16:01:18 +00:00
// WorkflowGetTree provides a mock function with given fields: _a0
func ( _m * Store ) WorkflowGetTree ( _a0 * model . Pipeline ) ( [ ] * model . Workflow , error ) {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for WorkflowGetTree" )
}
2023-06-27 16:01:18 +00:00
var r0 [ ] * model . Workflow
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Pipeline ) ( [ ] * model . Workflow , error ) ) ; ok {
return rf ( _a0 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Pipeline ) [ ] * model . Workflow ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Workflow )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( * model . Pipeline ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// WorkflowLoad provides a mock function with given fields: _a0
func ( _m * Store ) WorkflowLoad ( _a0 int64 ) ( * model . Workflow , error ) {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for WorkflowLoad" )
}
2023-06-27 16:01:18 +00:00
var r0 * model . Workflow
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( int64 ) ( * model . Workflow , error ) ) ; ok {
return rf ( _a0 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( int64 ) * model . Workflow ) ; ok {
r0 = rf ( _a0 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Workflow )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( int64 ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// WorkflowUpdate provides a mock function with given fields: _a0
func ( _m * Store ) WorkflowUpdate ( _a0 * model . Workflow ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for WorkflowUpdate" )
}
2023-06-27 16:01:18 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Workflow ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// WorkflowsCreate provides a mock function with given fields: _a0
func ( _m * Store ) WorkflowsCreate ( _a0 [ ] * model . Workflow ) error {
ret := _m . Called ( _a0 )
2023-12-12 20:30:52 +00:00
if len ( ret ) == 0 {
panic ( "no return value specified for WorkflowsCreate" )
}
2023-06-27 16:01:18 +00:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( [ ] * model . Workflow ) error ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2024-03-18 19:07:45 +00:00
// WorkflowsReplace provides a mock function with given fields: _a0, _a1
func ( _m * Store ) WorkflowsReplace ( _a0 * model . Pipeline , _a1 [ ] * model . Workflow ) error {
ret := _m . Called ( _a0 , _a1 )
if len ( ret ) == 0 {
panic ( "no return value specified for WorkflowsReplace" )
}
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( * model . Pipeline , [ ] * model . Workflow ) error ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2023-07-11 13:53:05 +00:00
// NewStore creates a new instance of Store. 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 NewStore ( t interface {
2022-08-31 23:19:49 +00:00
mock . TestingT
Cleanup ( func ( ) )
2023-07-11 13:53:05 +00:00
} ) * Store {
2022-08-31 23:19:49 +00:00
mock := & Store { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}