github.com/qichengzx/mattermost-server@v4.5.1-0.20180604164826-2c75247c97d0+incompatible/store/storetest/mocks/LayeredStoreDatabaseLayer.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  // Regenerate this file using `make store-mocks`.
     4  
     5  package mocks
     6  
     7  import context "context"
     8  import mock "github.com/stretchr/testify/mock"
     9  import model "github.com/mattermost/mattermost-server/model"
    10  import store "github.com/mattermost/mattermost-server/store"
    11  
    12  // LayeredStoreDatabaseLayer is an autogenerated mock type for the LayeredStoreDatabaseLayer type
    13  type LayeredStoreDatabaseLayer struct {
    14  	mock.Mock
    15  }
    16  
    17  // Audit provides a mock function with given fields:
    18  func (_m *LayeredStoreDatabaseLayer) Audit() store.AuditStore {
    19  	ret := _m.Called()
    20  
    21  	var r0 store.AuditStore
    22  	if rf, ok := ret.Get(0).(func() store.AuditStore); ok {
    23  		r0 = rf()
    24  	} else {
    25  		if ret.Get(0) != nil {
    26  			r0 = ret.Get(0).(store.AuditStore)
    27  		}
    28  	}
    29  
    30  	return r0
    31  }
    32  
    33  // Channel provides a mock function with given fields:
    34  func (_m *LayeredStoreDatabaseLayer) Channel() store.ChannelStore {
    35  	ret := _m.Called()
    36  
    37  	var r0 store.ChannelStore
    38  	if rf, ok := ret.Get(0).(func() store.ChannelStore); ok {
    39  		r0 = rf()
    40  	} else {
    41  		if ret.Get(0) != nil {
    42  			r0 = ret.Get(0).(store.ChannelStore)
    43  		}
    44  	}
    45  
    46  	return r0
    47  }
    48  
    49  // ChannelMemberHistory provides a mock function with given fields:
    50  func (_m *LayeredStoreDatabaseLayer) ChannelMemberHistory() store.ChannelMemberHistoryStore {
    51  	ret := _m.Called()
    52  
    53  	var r0 store.ChannelMemberHistoryStore
    54  	if rf, ok := ret.Get(0).(func() store.ChannelMemberHistoryStore); ok {
    55  		r0 = rf()
    56  	} else {
    57  		if ret.Get(0) != nil {
    58  			r0 = ret.Get(0).(store.ChannelMemberHistoryStore)
    59  		}
    60  	}
    61  
    62  	return r0
    63  }
    64  
    65  // Close provides a mock function with given fields:
    66  func (_m *LayeredStoreDatabaseLayer) Close() {
    67  	_m.Called()
    68  }
    69  
    70  // ClusterDiscovery provides a mock function with given fields:
    71  func (_m *LayeredStoreDatabaseLayer) ClusterDiscovery() store.ClusterDiscoveryStore {
    72  	ret := _m.Called()
    73  
    74  	var r0 store.ClusterDiscoveryStore
    75  	if rf, ok := ret.Get(0).(func() store.ClusterDiscoveryStore); ok {
    76  		r0 = rf()
    77  	} else {
    78  		if ret.Get(0) != nil {
    79  			r0 = ret.Get(0).(store.ClusterDiscoveryStore)
    80  		}
    81  	}
    82  
    83  	return r0
    84  }
    85  
    86  // Command provides a mock function with given fields:
    87  func (_m *LayeredStoreDatabaseLayer) Command() store.CommandStore {
    88  	ret := _m.Called()
    89  
    90  	var r0 store.CommandStore
    91  	if rf, ok := ret.Get(0).(func() store.CommandStore); ok {
    92  		r0 = rf()
    93  	} else {
    94  		if ret.Get(0) != nil {
    95  			r0 = ret.Get(0).(store.CommandStore)
    96  		}
    97  	}
    98  
    99  	return r0
   100  }
   101  
   102  // CommandWebhook provides a mock function with given fields:
   103  func (_m *LayeredStoreDatabaseLayer) CommandWebhook() store.CommandWebhookStore {
   104  	ret := _m.Called()
   105  
   106  	var r0 store.CommandWebhookStore
   107  	if rf, ok := ret.Get(0).(func() store.CommandWebhookStore); ok {
   108  		r0 = rf()
   109  	} else {
   110  		if ret.Get(0) != nil {
   111  			r0 = ret.Get(0).(store.CommandWebhookStore)
   112  		}
   113  	}
   114  
   115  	return r0
   116  }
   117  
   118  // Compliance provides a mock function with given fields:
   119  func (_m *LayeredStoreDatabaseLayer) Compliance() store.ComplianceStore {
   120  	ret := _m.Called()
   121  
   122  	var r0 store.ComplianceStore
   123  	if rf, ok := ret.Get(0).(func() store.ComplianceStore); ok {
   124  		r0 = rf()
   125  	} else {
   126  		if ret.Get(0) != nil {
   127  			r0 = ret.Get(0).(store.ComplianceStore)
   128  		}
   129  	}
   130  
   131  	return r0
   132  }
   133  
   134  // DropAllTables provides a mock function with given fields:
   135  func (_m *LayeredStoreDatabaseLayer) DropAllTables() {
   136  	_m.Called()
   137  }
   138  
   139  // Emoji provides a mock function with given fields:
   140  func (_m *LayeredStoreDatabaseLayer) Emoji() store.EmojiStore {
   141  	ret := _m.Called()
   142  
   143  	var r0 store.EmojiStore
   144  	if rf, ok := ret.Get(0).(func() store.EmojiStore); ok {
   145  		r0 = rf()
   146  	} else {
   147  		if ret.Get(0) != nil {
   148  			r0 = ret.Get(0).(store.EmojiStore)
   149  		}
   150  	}
   151  
   152  	return r0
   153  }
   154  
   155  // FileInfo provides a mock function with given fields:
   156  func (_m *LayeredStoreDatabaseLayer) FileInfo() store.FileInfoStore {
   157  	ret := _m.Called()
   158  
   159  	var r0 store.FileInfoStore
   160  	if rf, ok := ret.Get(0).(func() store.FileInfoStore); ok {
   161  		r0 = rf()
   162  	} else {
   163  		if ret.Get(0) != nil {
   164  			r0 = ret.Get(0).(store.FileInfoStore)
   165  		}
   166  	}
   167  
   168  	return r0
   169  }
   170  
   171  // Job provides a mock function with given fields:
   172  func (_m *LayeredStoreDatabaseLayer) Job() store.JobStore {
   173  	ret := _m.Called()
   174  
   175  	var r0 store.JobStore
   176  	if rf, ok := ret.Get(0).(func() store.JobStore); ok {
   177  		r0 = rf()
   178  	} else {
   179  		if ret.Get(0) != nil {
   180  			r0 = ret.Get(0).(store.JobStore)
   181  		}
   182  	}
   183  
   184  	return r0
   185  }
   186  
   187  // License provides a mock function with given fields:
   188  func (_m *LayeredStoreDatabaseLayer) License() store.LicenseStore {
   189  	ret := _m.Called()
   190  
   191  	var r0 store.LicenseStore
   192  	if rf, ok := ret.Get(0).(func() store.LicenseStore); ok {
   193  		r0 = rf()
   194  	} else {
   195  		if ret.Get(0) != nil {
   196  			r0 = ret.Get(0).(store.LicenseStore)
   197  		}
   198  	}
   199  
   200  	return r0
   201  }
   202  
   203  // MarkSystemRanUnitTests provides a mock function with given fields:
   204  func (_m *LayeredStoreDatabaseLayer) MarkSystemRanUnitTests() {
   205  	_m.Called()
   206  }
   207  
   208  // Next provides a mock function with given fields:
   209  func (_m *LayeredStoreDatabaseLayer) Next() store.LayeredStoreSupplier {
   210  	ret := _m.Called()
   211  
   212  	var r0 store.LayeredStoreSupplier
   213  	if rf, ok := ret.Get(0).(func() store.LayeredStoreSupplier); ok {
   214  		r0 = rf()
   215  	} else {
   216  		if ret.Get(0) != nil {
   217  			r0 = ret.Get(0).(store.LayeredStoreSupplier)
   218  		}
   219  	}
   220  
   221  	return r0
   222  }
   223  
   224  // OAuth provides a mock function with given fields:
   225  func (_m *LayeredStoreDatabaseLayer) OAuth() store.OAuthStore {
   226  	ret := _m.Called()
   227  
   228  	var r0 store.OAuthStore
   229  	if rf, ok := ret.Get(0).(func() store.OAuthStore); ok {
   230  		r0 = rf()
   231  	} else {
   232  		if ret.Get(0) != nil {
   233  			r0 = ret.Get(0).(store.OAuthStore)
   234  		}
   235  	}
   236  
   237  	return r0
   238  }
   239  
   240  // Plugin provides a mock function with given fields:
   241  func (_m *LayeredStoreDatabaseLayer) Plugin() store.PluginStore {
   242  	ret := _m.Called()
   243  
   244  	var r0 store.PluginStore
   245  	if rf, ok := ret.Get(0).(func() store.PluginStore); ok {
   246  		r0 = rf()
   247  	} else {
   248  		if ret.Get(0) != nil {
   249  			r0 = ret.Get(0).(store.PluginStore)
   250  		}
   251  	}
   252  
   253  	return r0
   254  }
   255  
   256  // Post provides a mock function with given fields:
   257  func (_m *LayeredStoreDatabaseLayer) Post() store.PostStore {
   258  	ret := _m.Called()
   259  
   260  	var r0 store.PostStore
   261  	if rf, ok := ret.Get(0).(func() store.PostStore); ok {
   262  		r0 = rf()
   263  	} else {
   264  		if ret.Get(0) != nil {
   265  			r0 = ret.Get(0).(store.PostStore)
   266  		}
   267  	}
   268  
   269  	return r0
   270  }
   271  
   272  // Preference provides a mock function with given fields:
   273  func (_m *LayeredStoreDatabaseLayer) Preference() store.PreferenceStore {
   274  	ret := _m.Called()
   275  
   276  	var r0 store.PreferenceStore
   277  	if rf, ok := ret.Get(0).(func() store.PreferenceStore); ok {
   278  		r0 = rf()
   279  	} else {
   280  		if ret.Get(0) != nil {
   281  			r0 = ret.Get(0).(store.PreferenceStore)
   282  		}
   283  	}
   284  
   285  	return r0
   286  }
   287  
   288  // Reaction provides a mock function with given fields:
   289  func (_m *LayeredStoreDatabaseLayer) Reaction() store.ReactionStore {
   290  	ret := _m.Called()
   291  
   292  	var r0 store.ReactionStore
   293  	if rf, ok := ret.Get(0).(func() store.ReactionStore); ok {
   294  		r0 = rf()
   295  	} else {
   296  		if ret.Get(0) != nil {
   297  			r0 = ret.Get(0).(store.ReactionStore)
   298  		}
   299  	}
   300  
   301  	return r0
   302  }
   303  
   304  // ReactionDelete provides a mock function with given fields: ctx, reaction, hints
   305  func (_m *LayeredStoreDatabaseLayer) ReactionDelete(ctx context.Context, reaction *model.Reaction, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult {
   306  	_va := make([]interface{}, len(hints))
   307  	for _i := range hints {
   308  		_va[_i] = hints[_i]
   309  	}
   310  	var _ca []interface{}
   311  	_ca = append(_ca, ctx, reaction)
   312  	_ca = append(_ca, _va...)
   313  	ret := _m.Called(_ca...)
   314  
   315  	var r0 *store.LayeredStoreSupplierResult
   316  	if rf, ok := ret.Get(0).(func(context.Context, *model.Reaction, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok {
   317  		r0 = rf(ctx, reaction, hints...)
   318  	} else {
   319  		if ret.Get(0) != nil {
   320  			r0 = ret.Get(0).(*store.LayeredStoreSupplierResult)
   321  		}
   322  	}
   323  
   324  	return r0
   325  }
   326  
   327  // ReactionDeleteAllWithEmojiName provides a mock function with given fields: ctx, emojiName, hints
   328  func (_m *LayeredStoreDatabaseLayer) ReactionDeleteAllWithEmojiName(ctx context.Context, emojiName string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult {
   329  	_va := make([]interface{}, len(hints))
   330  	for _i := range hints {
   331  		_va[_i] = hints[_i]
   332  	}
   333  	var _ca []interface{}
   334  	_ca = append(_ca, ctx, emojiName)
   335  	_ca = append(_ca, _va...)
   336  	ret := _m.Called(_ca...)
   337  
   338  	var r0 *store.LayeredStoreSupplierResult
   339  	if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok {
   340  		r0 = rf(ctx, emojiName, hints...)
   341  	} else {
   342  		if ret.Get(0) != nil {
   343  			r0 = ret.Get(0).(*store.LayeredStoreSupplierResult)
   344  		}
   345  	}
   346  
   347  	return r0
   348  }
   349  
   350  // ReactionGetForPost provides a mock function with given fields: ctx, postId, hints
   351  func (_m *LayeredStoreDatabaseLayer) ReactionGetForPost(ctx context.Context, postId string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult {
   352  	_va := make([]interface{}, len(hints))
   353  	for _i := range hints {
   354  		_va[_i] = hints[_i]
   355  	}
   356  	var _ca []interface{}
   357  	_ca = append(_ca, ctx, postId)
   358  	_ca = append(_ca, _va...)
   359  	ret := _m.Called(_ca...)
   360  
   361  	var r0 *store.LayeredStoreSupplierResult
   362  	if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok {
   363  		r0 = rf(ctx, postId, hints...)
   364  	} else {
   365  		if ret.Get(0) != nil {
   366  			r0 = ret.Get(0).(*store.LayeredStoreSupplierResult)
   367  		}
   368  	}
   369  
   370  	return r0
   371  }
   372  
   373  // ReactionPermanentDeleteBatch provides a mock function with given fields: ctx, endTime, limit, hints
   374  func (_m *LayeredStoreDatabaseLayer) ReactionPermanentDeleteBatch(ctx context.Context, endTime int64, limit int64, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult {
   375  	_va := make([]interface{}, len(hints))
   376  	for _i := range hints {
   377  		_va[_i] = hints[_i]
   378  	}
   379  	var _ca []interface{}
   380  	_ca = append(_ca, ctx, endTime, limit)
   381  	_ca = append(_ca, _va...)
   382  	ret := _m.Called(_ca...)
   383  
   384  	var r0 *store.LayeredStoreSupplierResult
   385  	if rf, ok := ret.Get(0).(func(context.Context, int64, int64, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok {
   386  		r0 = rf(ctx, endTime, limit, hints...)
   387  	} else {
   388  		if ret.Get(0) != nil {
   389  			r0 = ret.Get(0).(*store.LayeredStoreSupplierResult)
   390  		}
   391  	}
   392  
   393  	return r0
   394  }
   395  
   396  // ReactionSave provides a mock function with given fields: ctx, reaction, hints
   397  func (_m *LayeredStoreDatabaseLayer) ReactionSave(ctx context.Context, reaction *model.Reaction, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult {
   398  	_va := make([]interface{}, len(hints))
   399  	for _i := range hints {
   400  		_va[_i] = hints[_i]
   401  	}
   402  	var _ca []interface{}
   403  	_ca = append(_ca, ctx, reaction)
   404  	_ca = append(_ca, _va...)
   405  	ret := _m.Called(_ca...)
   406  
   407  	var r0 *store.LayeredStoreSupplierResult
   408  	if rf, ok := ret.Get(0).(func(context.Context, *model.Reaction, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok {
   409  		r0 = rf(ctx, reaction, hints...)
   410  	} else {
   411  		if ret.Get(0) != nil {
   412  			r0 = ret.Get(0).(*store.LayeredStoreSupplierResult)
   413  		}
   414  	}
   415  
   416  	return r0
   417  }
   418  
   419  // Role provides a mock function with given fields:
   420  func (_m *LayeredStoreDatabaseLayer) Role() store.RoleStore {
   421  	ret := _m.Called()
   422  
   423  	var r0 store.RoleStore
   424  	if rf, ok := ret.Get(0).(func() store.RoleStore); ok {
   425  		r0 = rf()
   426  	} else {
   427  		if ret.Get(0) != nil {
   428  			r0 = ret.Get(0).(store.RoleStore)
   429  		}
   430  	}
   431  
   432  	return r0
   433  }
   434  
   435  // RoleDelete provides a mock function with given fields: ctx, roldId, hints
   436  func (_m *LayeredStoreDatabaseLayer) RoleDelete(ctx context.Context, roldId string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult {
   437  	_va := make([]interface{}, len(hints))
   438  	for _i := range hints {
   439  		_va[_i] = hints[_i]
   440  	}
   441  	var _ca []interface{}
   442  	_ca = append(_ca, ctx, roldId)
   443  	_ca = append(_ca, _va...)
   444  	ret := _m.Called(_ca...)
   445  
   446  	var r0 *store.LayeredStoreSupplierResult
   447  	if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok {
   448  		r0 = rf(ctx, roldId, hints...)
   449  	} else {
   450  		if ret.Get(0) != nil {
   451  			r0 = ret.Get(0).(*store.LayeredStoreSupplierResult)
   452  		}
   453  	}
   454  
   455  	return r0
   456  }
   457  
   458  // RoleGet provides a mock function with given fields: ctx, roleId, hints
   459  func (_m *LayeredStoreDatabaseLayer) RoleGet(ctx context.Context, roleId string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult {
   460  	_va := make([]interface{}, len(hints))
   461  	for _i := range hints {
   462  		_va[_i] = hints[_i]
   463  	}
   464  	var _ca []interface{}
   465  	_ca = append(_ca, ctx, roleId)
   466  	_ca = append(_ca, _va...)
   467  	ret := _m.Called(_ca...)
   468  
   469  	var r0 *store.LayeredStoreSupplierResult
   470  	if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok {
   471  		r0 = rf(ctx, roleId, hints...)
   472  	} else {
   473  		if ret.Get(0) != nil {
   474  			r0 = ret.Get(0).(*store.LayeredStoreSupplierResult)
   475  		}
   476  	}
   477  
   478  	return r0
   479  }
   480  
   481  // RoleGetByName provides a mock function with given fields: ctx, name, hints
   482  func (_m *LayeredStoreDatabaseLayer) RoleGetByName(ctx context.Context, name string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult {
   483  	_va := make([]interface{}, len(hints))
   484  	for _i := range hints {
   485  		_va[_i] = hints[_i]
   486  	}
   487  	var _ca []interface{}
   488  	_ca = append(_ca, ctx, name)
   489  	_ca = append(_ca, _va...)
   490  	ret := _m.Called(_ca...)
   491  
   492  	var r0 *store.LayeredStoreSupplierResult
   493  	if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok {
   494  		r0 = rf(ctx, name, hints...)
   495  	} else {
   496  		if ret.Get(0) != nil {
   497  			r0 = ret.Get(0).(*store.LayeredStoreSupplierResult)
   498  		}
   499  	}
   500  
   501  	return r0
   502  }
   503  
   504  // RoleGetByNames provides a mock function with given fields: ctx, names, hints
   505  func (_m *LayeredStoreDatabaseLayer) RoleGetByNames(ctx context.Context, names []string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult {
   506  	_va := make([]interface{}, len(hints))
   507  	for _i := range hints {
   508  		_va[_i] = hints[_i]
   509  	}
   510  	var _ca []interface{}
   511  	_ca = append(_ca, ctx, names)
   512  	_ca = append(_ca, _va...)
   513  	ret := _m.Called(_ca...)
   514  
   515  	var r0 *store.LayeredStoreSupplierResult
   516  	if rf, ok := ret.Get(0).(func(context.Context, []string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok {
   517  		r0 = rf(ctx, names, hints...)
   518  	} else {
   519  		if ret.Get(0) != nil {
   520  			r0 = ret.Get(0).(*store.LayeredStoreSupplierResult)
   521  		}
   522  	}
   523  
   524  	return r0
   525  }
   526  
   527  // RolePermanentDeleteAll provides a mock function with given fields: ctx, hints
   528  func (_m *LayeredStoreDatabaseLayer) RolePermanentDeleteAll(ctx context.Context, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult {
   529  	_va := make([]interface{}, len(hints))
   530  	for _i := range hints {
   531  		_va[_i] = hints[_i]
   532  	}
   533  	var _ca []interface{}
   534  	_ca = append(_ca, ctx)
   535  	_ca = append(_ca, _va...)
   536  	ret := _m.Called(_ca...)
   537  
   538  	var r0 *store.LayeredStoreSupplierResult
   539  	if rf, ok := ret.Get(0).(func(context.Context, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok {
   540  		r0 = rf(ctx, hints...)
   541  	} else {
   542  		if ret.Get(0) != nil {
   543  			r0 = ret.Get(0).(*store.LayeredStoreSupplierResult)
   544  		}
   545  	}
   546  
   547  	return r0
   548  }
   549  
   550  // RoleSave provides a mock function with given fields: ctx, role, hints
   551  func (_m *LayeredStoreDatabaseLayer) RoleSave(ctx context.Context, role *model.Role, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult {
   552  	_va := make([]interface{}, len(hints))
   553  	for _i := range hints {
   554  		_va[_i] = hints[_i]
   555  	}
   556  	var _ca []interface{}
   557  	_ca = append(_ca, ctx, role)
   558  	_ca = append(_ca, _va...)
   559  	ret := _m.Called(_ca...)
   560  
   561  	var r0 *store.LayeredStoreSupplierResult
   562  	if rf, ok := ret.Get(0).(func(context.Context, *model.Role, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok {
   563  		r0 = rf(ctx, role, hints...)
   564  	} else {
   565  		if ret.Get(0) != nil {
   566  			r0 = ret.Get(0).(*store.LayeredStoreSupplierResult)
   567  		}
   568  	}
   569  
   570  	return r0
   571  }
   572  
   573  // Scheme provides a mock function with given fields:
   574  func (_m *LayeredStoreDatabaseLayer) Scheme() store.SchemeStore {
   575  	ret := _m.Called()
   576  
   577  	var r0 store.SchemeStore
   578  	if rf, ok := ret.Get(0).(func() store.SchemeStore); ok {
   579  		r0 = rf()
   580  	} else {
   581  		if ret.Get(0) != nil {
   582  			r0 = ret.Get(0).(store.SchemeStore)
   583  		}
   584  	}
   585  
   586  	return r0
   587  }
   588  
   589  // SchemeDelete provides a mock function with given fields: ctx, schemeId, hints
   590  func (_m *LayeredStoreDatabaseLayer) SchemeDelete(ctx context.Context, schemeId string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult {
   591  	_va := make([]interface{}, len(hints))
   592  	for _i := range hints {
   593  		_va[_i] = hints[_i]
   594  	}
   595  	var _ca []interface{}
   596  	_ca = append(_ca, ctx, schemeId)
   597  	_ca = append(_ca, _va...)
   598  	ret := _m.Called(_ca...)
   599  
   600  	var r0 *store.LayeredStoreSupplierResult
   601  	if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok {
   602  		r0 = rf(ctx, schemeId, hints...)
   603  	} else {
   604  		if ret.Get(0) != nil {
   605  			r0 = ret.Get(0).(*store.LayeredStoreSupplierResult)
   606  		}
   607  	}
   608  
   609  	return r0
   610  }
   611  
   612  // SchemeGet provides a mock function with given fields: ctx, schemeId, hints
   613  func (_m *LayeredStoreDatabaseLayer) SchemeGet(ctx context.Context, schemeId string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult {
   614  	_va := make([]interface{}, len(hints))
   615  	for _i := range hints {
   616  		_va[_i] = hints[_i]
   617  	}
   618  	var _ca []interface{}
   619  	_ca = append(_ca, ctx, schemeId)
   620  	_ca = append(_ca, _va...)
   621  	ret := _m.Called(_ca...)
   622  
   623  	var r0 *store.LayeredStoreSupplierResult
   624  	if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok {
   625  		r0 = rf(ctx, schemeId, hints...)
   626  	} else {
   627  		if ret.Get(0) != nil {
   628  			r0 = ret.Get(0).(*store.LayeredStoreSupplierResult)
   629  		}
   630  	}
   631  
   632  	return r0
   633  }
   634  
   635  // SchemeGetAllPage provides a mock function with given fields: ctx, scope, offset, limit, hints
   636  func (_m *LayeredStoreDatabaseLayer) SchemeGetAllPage(ctx context.Context, scope string, offset int, limit int, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult {
   637  	_va := make([]interface{}, len(hints))
   638  	for _i := range hints {
   639  		_va[_i] = hints[_i]
   640  	}
   641  	var _ca []interface{}
   642  	_ca = append(_ca, ctx, scope, offset, limit)
   643  	_ca = append(_ca, _va...)
   644  	ret := _m.Called(_ca...)
   645  
   646  	var r0 *store.LayeredStoreSupplierResult
   647  	if rf, ok := ret.Get(0).(func(context.Context, string, int, int, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok {
   648  		r0 = rf(ctx, scope, offset, limit, hints...)
   649  	} else {
   650  		if ret.Get(0) != nil {
   651  			r0 = ret.Get(0).(*store.LayeredStoreSupplierResult)
   652  		}
   653  	}
   654  
   655  	return r0
   656  }
   657  
   658  // SchemePermanentDeleteAll provides a mock function with given fields: ctx, hints
   659  func (_m *LayeredStoreDatabaseLayer) SchemePermanentDeleteAll(ctx context.Context, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult {
   660  	_va := make([]interface{}, len(hints))
   661  	for _i := range hints {
   662  		_va[_i] = hints[_i]
   663  	}
   664  	var _ca []interface{}
   665  	_ca = append(_ca, ctx)
   666  	_ca = append(_ca, _va...)
   667  	ret := _m.Called(_ca...)
   668  
   669  	var r0 *store.LayeredStoreSupplierResult
   670  	if rf, ok := ret.Get(0).(func(context.Context, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok {
   671  		r0 = rf(ctx, hints...)
   672  	} else {
   673  		if ret.Get(0) != nil {
   674  			r0 = ret.Get(0).(*store.LayeredStoreSupplierResult)
   675  		}
   676  	}
   677  
   678  	return r0
   679  }
   680  
   681  // SchemeSave provides a mock function with given fields: ctx, scheme, hints
   682  func (_m *LayeredStoreDatabaseLayer) SchemeSave(ctx context.Context, scheme *model.Scheme, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult {
   683  	_va := make([]interface{}, len(hints))
   684  	for _i := range hints {
   685  		_va[_i] = hints[_i]
   686  	}
   687  	var _ca []interface{}
   688  	_ca = append(_ca, ctx, scheme)
   689  	_ca = append(_ca, _va...)
   690  	ret := _m.Called(_ca...)
   691  
   692  	var r0 *store.LayeredStoreSupplierResult
   693  	if rf, ok := ret.Get(0).(func(context.Context, *model.Scheme, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok {
   694  		r0 = rf(ctx, scheme, hints...)
   695  	} else {
   696  		if ret.Get(0) != nil {
   697  			r0 = ret.Get(0).(*store.LayeredStoreSupplierResult)
   698  		}
   699  	}
   700  
   701  	return r0
   702  }
   703  
   704  // Session provides a mock function with given fields:
   705  func (_m *LayeredStoreDatabaseLayer) Session() store.SessionStore {
   706  	ret := _m.Called()
   707  
   708  	var r0 store.SessionStore
   709  	if rf, ok := ret.Get(0).(func() store.SessionStore); ok {
   710  		r0 = rf()
   711  	} else {
   712  		if ret.Get(0) != nil {
   713  			r0 = ret.Get(0).(store.SessionStore)
   714  		}
   715  	}
   716  
   717  	return r0
   718  }
   719  
   720  // SetChainNext provides a mock function with given fields: _a0
   721  func (_m *LayeredStoreDatabaseLayer) SetChainNext(_a0 store.LayeredStoreSupplier) {
   722  	_m.Called(_a0)
   723  }
   724  
   725  // Status provides a mock function with given fields:
   726  func (_m *LayeredStoreDatabaseLayer) Status() store.StatusStore {
   727  	ret := _m.Called()
   728  
   729  	var r0 store.StatusStore
   730  	if rf, ok := ret.Get(0).(func() store.StatusStore); ok {
   731  		r0 = rf()
   732  	} else {
   733  		if ret.Get(0) != nil {
   734  			r0 = ret.Get(0).(store.StatusStore)
   735  		}
   736  	}
   737  
   738  	return r0
   739  }
   740  
   741  // System provides a mock function with given fields:
   742  func (_m *LayeredStoreDatabaseLayer) System() store.SystemStore {
   743  	ret := _m.Called()
   744  
   745  	var r0 store.SystemStore
   746  	if rf, ok := ret.Get(0).(func() store.SystemStore); ok {
   747  		r0 = rf()
   748  	} else {
   749  		if ret.Get(0) != nil {
   750  			r0 = ret.Get(0).(store.SystemStore)
   751  		}
   752  	}
   753  
   754  	return r0
   755  }
   756  
   757  // Team provides a mock function with given fields:
   758  func (_m *LayeredStoreDatabaseLayer) Team() store.TeamStore {
   759  	ret := _m.Called()
   760  
   761  	var r0 store.TeamStore
   762  	if rf, ok := ret.Get(0).(func() store.TeamStore); ok {
   763  		r0 = rf()
   764  	} else {
   765  		if ret.Get(0) != nil {
   766  			r0 = ret.Get(0).(store.TeamStore)
   767  		}
   768  	}
   769  
   770  	return r0
   771  }
   772  
   773  // Token provides a mock function with given fields:
   774  func (_m *LayeredStoreDatabaseLayer) Token() store.TokenStore {
   775  	ret := _m.Called()
   776  
   777  	var r0 store.TokenStore
   778  	if rf, ok := ret.Get(0).(func() store.TokenStore); ok {
   779  		r0 = rf()
   780  	} else {
   781  		if ret.Get(0) != nil {
   782  			r0 = ret.Get(0).(store.TokenStore)
   783  		}
   784  	}
   785  
   786  	return r0
   787  }
   788  
   789  // TotalMasterDbConnections provides a mock function with given fields:
   790  func (_m *LayeredStoreDatabaseLayer) TotalMasterDbConnections() int {
   791  	ret := _m.Called()
   792  
   793  	var r0 int
   794  	if rf, ok := ret.Get(0).(func() int); ok {
   795  		r0 = rf()
   796  	} else {
   797  		r0 = ret.Get(0).(int)
   798  	}
   799  
   800  	return r0
   801  }
   802  
   803  // TotalReadDbConnections provides a mock function with given fields:
   804  func (_m *LayeredStoreDatabaseLayer) TotalReadDbConnections() int {
   805  	ret := _m.Called()
   806  
   807  	var r0 int
   808  	if rf, ok := ret.Get(0).(func() int); ok {
   809  		r0 = rf()
   810  	} else {
   811  		r0 = ret.Get(0).(int)
   812  	}
   813  
   814  	return r0
   815  }
   816  
   817  // TotalSearchDbConnections provides a mock function with given fields:
   818  func (_m *LayeredStoreDatabaseLayer) TotalSearchDbConnections() int {
   819  	ret := _m.Called()
   820  
   821  	var r0 int
   822  	if rf, ok := ret.Get(0).(func() int); ok {
   823  		r0 = rf()
   824  	} else {
   825  		r0 = ret.Get(0).(int)
   826  	}
   827  
   828  	return r0
   829  }
   830  
   831  // User provides a mock function with given fields:
   832  func (_m *LayeredStoreDatabaseLayer) User() store.UserStore {
   833  	ret := _m.Called()
   834  
   835  	var r0 store.UserStore
   836  	if rf, ok := ret.Get(0).(func() store.UserStore); ok {
   837  		r0 = rf()
   838  	} else {
   839  		if ret.Get(0) != nil {
   840  			r0 = ret.Get(0).(store.UserStore)
   841  		}
   842  	}
   843  
   844  	return r0
   845  }
   846  
   847  // UserAccessToken provides a mock function with given fields:
   848  func (_m *LayeredStoreDatabaseLayer) UserAccessToken() store.UserAccessTokenStore {
   849  	ret := _m.Called()
   850  
   851  	var r0 store.UserAccessTokenStore
   852  	if rf, ok := ret.Get(0).(func() store.UserAccessTokenStore); ok {
   853  		r0 = rf()
   854  	} else {
   855  		if ret.Get(0) != nil {
   856  			r0 = ret.Get(0).(store.UserAccessTokenStore)
   857  		}
   858  	}
   859  
   860  	return r0
   861  }
   862  
   863  // Webhook provides a mock function with given fields:
   864  func (_m *LayeredStoreDatabaseLayer) Webhook() store.WebhookStore {
   865  	ret := _m.Called()
   866  
   867  	var r0 store.WebhookStore
   868  	if rf, ok := ret.Get(0).(func() store.WebhookStore); ok {
   869  		r0 = rf()
   870  	} else {
   871  		if ret.Get(0) != nil {
   872  			r0 = ret.Get(0).(store.WebhookStore)
   873  		}
   874  	}
   875  
   876  	return r0
   877  }