github.com/demisto/mattermost-server@v4.9.0-rc3+incompatible/store/storetest/mocks/SqlStore.go (about)

     1  // Code generated by mockery v1.0.0
     2  
     3  // Regenerate this file using `make store-mocks`.
     4  
     5  package mocks
     6  
     7  import gorp "github.com/mattermost/gorp"
     8  import mock "github.com/stretchr/testify/mock"
     9  
    10  import store "github.com/mattermost/mattermost-server/store"
    11  
    12  // SqlStore is an autogenerated mock type for the SqlStore type
    13  type SqlStore struct {
    14  	mock.Mock
    15  }
    16  
    17  // AlterColumnTypeIfExists provides a mock function with given fields: tableName, columnName, mySqlColType, postgresColType
    18  func (_m *SqlStore) AlterColumnTypeIfExists(tableName string, columnName string, mySqlColType string, postgresColType string) bool {
    19  	ret := _m.Called(tableName, columnName, mySqlColType, postgresColType)
    20  
    21  	var r0 bool
    22  	if rf, ok := ret.Get(0).(func(string, string, string, string) bool); ok {
    23  		r0 = rf(tableName, columnName, mySqlColType, postgresColType)
    24  	} else {
    25  		r0 = ret.Get(0).(bool)
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  // Audit provides a mock function with given fields:
    32  func (_m *SqlStore) Audit() store.AuditStore {
    33  	ret := _m.Called()
    34  
    35  	var r0 store.AuditStore
    36  	if rf, ok := ret.Get(0).(func() store.AuditStore); ok {
    37  		r0 = rf()
    38  	} else {
    39  		if ret.Get(0) != nil {
    40  			r0 = ret.Get(0).(store.AuditStore)
    41  		}
    42  	}
    43  
    44  	return r0
    45  }
    46  
    47  // Channel provides a mock function with given fields:
    48  func (_m *SqlStore) Channel() store.ChannelStore {
    49  	ret := _m.Called()
    50  
    51  	var r0 store.ChannelStore
    52  	if rf, ok := ret.Get(0).(func() store.ChannelStore); ok {
    53  		r0 = rf()
    54  	} else {
    55  		if ret.Get(0) != nil {
    56  			r0 = ret.Get(0).(store.ChannelStore)
    57  		}
    58  	}
    59  
    60  	return r0
    61  }
    62  
    63  // Close provides a mock function with given fields:
    64  func (_m *SqlStore) Close() {
    65  	_m.Called()
    66  }
    67  
    68  // ClusterDiscovery provides a mock function with given fields:
    69  func (_m *SqlStore) ClusterDiscovery() store.ClusterDiscoveryStore {
    70  	ret := _m.Called()
    71  
    72  	var r0 store.ClusterDiscoveryStore
    73  	if rf, ok := ret.Get(0).(func() store.ClusterDiscoveryStore); ok {
    74  		r0 = rf()
    75  	} else {
    76  		if ret.Get(0) != nil {
    77  			r0 = ret.Get(0).(store.ClusterDiscoveryStore)
    78  		}
    79  	}
    80  
    81  	return r0
    82  }
    83  
    84  // Command provides a mock function with given fields:
    85  func (_m *SqlStore) Command() store.CommandStore {
    86  	ret := _m.Called()
    87  
    88  	var r0 store.CommandStore
    89  	if rf, ok := ret.Get(0).(func() store.CommandStore); ok {
    90  		r0 = rf()
    91  	} else {
    92  		if ret.Get(0) != nil {
    93  			r0 = ret.Get(0).(store.CommandStore)
    94  		}
    95  	}
    96  
    97  	return r0
    98  }
    99  
   100  // CommandWebhook provides a mock function with given fields:
   101  func (_m *SqlStore) CommandWebhook() store.CommandWebhookStore {
   102  	ret := _m.Called()
   103  
   104  	var r0 store.CommandWebhookStore
   105  	if rf, ok := ret.Get(0).(func() store.CommandWebhookStore); ok {
   106  		r0 = rf()
   107  	} else {
   108  		if ret.Get(0) != nil {
   109  			r0 = ret.Get(0).(store.CommandWebhookStore)
   110  		}
   111  	}
   112  
   113  	return r0
   114  }
   115  
   116  // Compliance provides a mock function with given fields:
   117  func (_m *SqlStore) Compliance() store.ComplianceStore {
   118  	ret := _m.Called()
   119  
   120  	var r0 store.ComplianceStore
   121  	if rf, ok := ret.Get(0).(func() store.ComplianceStore); ok {
   122  		r0 = rf()
   123  	} else {
   124  		if ret.Get(0) != nil {
   125  			r0 = ret.Get(0).(store.ComplianceStore)
   126  		}
   127  	}
   128  
   129  	return r0
   130  }
   131  
   132  // CreateColumnIfNotExists provides a mock function with given fields: tableName, columnName, mySqlColType, postgresColType, defaultValue
   133  func (_m *SqlStore) CreateColumnIfNotExists(tableName string, columnName string, mySqlColType string, postgresColType string, defaultValue string) bool {
   134  	ret := _m.Called(tableName, columnName, mySqlColType, postgresColType, defaultValue)
   135  
   136  	var r0 bool
   137  	if rf, ok := ret.Get(0).(func(string, string, string, string, string) bool); ok {
   138  		r0 = rf(tableName, columnName, mySqlColType, postgresColType, defaultValue)
   139  	} else {
   140  		r0 = ret.Get(0).(bool)
   141  	}
   142  
   143  	return r0
   144  }
   145  
   146  // CreateCompositeIndexIfNotExists provides a mock function with given fields: indexName, tableName, columnNames
   147  func (_m *SqlStore) CreateCompositeIndexIfNotExists(indexName string, tableName string, columnNames []string) bool {
   148  	ret := _m.Called(indexName, tableName, columnNames)
   149  
   150  	var r0 bool
   151  	if rf, ok := ret.Get(0).(func(string, string, []string) bool); ok {
   152  		r0 = rf(indexName, tableName, columnNames)
   153  	} else {
   154  		r0 = ret.Get(0).(bool)
   155  	}
   156  
   157  	return r0
   158  }
   159  
   160  // CreateFullTextIndexIfNotExists provides a mock function with given fields: indexName, tableName, columnName
   161  func (_m *SqlStore) CreateFullTextIndexIfNotExists(indexName string, tableName string, columnName string) bool {
   162  	ret := _m.Called(indexName, tableName, columnName)
   163  
   164  	var r0 bool
   165  	if rf, ok := ret.Get(0).(func(string, string, string) bool); ok {
   166  		r0 = rf(indexName, tableName, columnName)
   167  	} else {
   168  		r0 = ret.Get(0).(bool)
   169  	}
   170  
   171  	return r0
   172  }
   173  
   174  // CreateIndexIfNotExists provides a mock function with given fields: indexName, tableName, columnName
   175  func (_m *SqlStore) CreateIndexIfNotExists(indexName string, tableName string, columnName string) bool {
   176  	ret := _m.Called(indexName, tableName, columnName)
   177  
   178  	var r0 bool
   179  	if rf, ok := ret.Get(0).(func(string, string, string) bool); ok {
   180  		r0 = rf(indexName, tableName, columnName)
   181  	} else {
   182  		r0 = ret.Get(0).(bool)
   183  	}
   184  
   185  	return r0
   186  }
   187  
   188  // CreateUniqueIndexIfNotExists provides a mock function with given fields: indexName, tableName, columnName
   189  func (_m *SqlStore) CreateUniqueIndexIfNotExists(indexName string, tableName string, columnName string) bool {
   190  	ret := _m.Called(indexName, tableName, columnName)
   191  
   192  	var r0 bool
   193  	if rf, ok := ret.Get(0).(func(string, string, string) bool); ok {
   194  		r0 = rf(indexName, tableName, columnName)
   195  	} else {
   196  		r0 = ret.Get(0).(bool)
   197  	}
   198  
   199  	return r0
   200  }
   201  
   202  // DoesColumnExist provides a mock function with given fields: tableName, columName
   203  func (_m *SqlStore) DoesColumnExist(tableName string, columName string) bool {
   204  	ret := _m.Called(tableName, columName)
   205  
   206  	var r0 bool
   207  	if rf, ok := ret.Get(0).(func(string, string) bool); ok {
   208  		r0 = rf(tableName, columName)
   209  	} else {
   210  		r0 = ret.Get(0).(bool)
   211  	}
   212  
   213  	return r0
   214  }
   215  
   216  // DoesTableExist provides a mock function with given fields: tablename
   217  func (_m *SqlStore) DoesTableExist(tablename string) bool {
   218  	ret := _m.Called(tablename)
   219  
   220  	var r0 bool
   221  	if rf, ok := ret.Get(0).(func(string) bool); ok {
   222  		r0 = rf(tablename)
   223  	} else {
   224  		r0 = ret.Get(0).(bool)
   225  	}
   226  
   227  	return r0
   228  }
   229  
   230  // DriverName provides a mock function with given fields:
   231  func (_m *SqlStore) DriverName() string {
   232  	ret := _m.Called()
   233  
   234  	var r0 string
   235  	if rf, ok := ret.Get(0).(func() string); ok {
   236  		r0 = rf()
   237  	} else {
   238  		r0 = ret.Get(0).(string)
   239  	}
   240  
   241  	return r0
   242  }
   243  
   244  // Emoji provides a mock function with given fields:
   245  func (_m *SqlStore) Emoji() store.EmojiStore {
   246  	ret := _m.Called()
   247  
   248  	var r0 store.EmojiStore
   249  	if rf, ok := ret.Get(0).(func() store.EmojiStore); ok {
   250  		r0 = rf()
   251  	} else {
   252  		if ret.Get(0) != nil {
   253  			r0 = ret.Get(0).(store.EmojiStore)
   254  		}
   255  	}
   256  
   257  	return r0
   258  }
   259  
   260  // FileInfo provides a mock function with given fields:
   261  func (_m *SqlStore) FileInfo() store.FileInfoStore {
   262  	ret := _m.Called()
   263  
   264  	var r0 store.FileInfoStore
   265  	if rf, ok := ret.Get(0).(func() store.FileInfoStore); ok {
   266  		r0 = rf()
   267  	} else {
   268  		if ret.Get(0) != nil {
   269  			r0 = ret.Get(0).(store.FileInfoStore)
   270  		}
   271  	}
   272  
   273  	return r0
   274  }
   275  
   276  // GetAllConns provides a mock function with given fields:
   277  func (_m *SqlStore) GetAllConns() []*gorp.DbMap {
   278  	ret := _m.Called()
   279  
   280  	var r0 []*gorp.DbMap
   281  	if rf, ok := ret.Get(0).(func() []*gorp.DbMap); ok {
   282  		r0 = rf()
   283  	} else {
   284  		if ret.Get(0) != nil {
   285  			r0 = ret.Get(0).([]*gorp.DbMap)
   286  		}
   287  	}
   288  
   289  	return r0
   290  }
   291  
   292  // GetCurrentSchemaVersion provides a mock function with given fields:
   293  func (_m *SqlStore) GetCurrentSchemaVersion() string {
   294  	ret := _m.Called()
   295  
   296  	var r0 string
   297  	if rf, ok := ret.Get(0).(func() string); ok {
   298  		r0 = rf()
   299  	} else {
   300  		r0 = ret.Get(0).(string)
   301  	}
   302  
   303  	return r0
   304  }
   305  
   306  // GetMaster provides a mock function with given fields:
   307  func (_m *SqlStore) GetMaster() *gorp.DbMap {
   308  	ret := _m.Called()
   309  
   310  	var r0 *gorp.DbMap
   311  	if rf, ok := ret.Get(0).(func() *gorp.DbMap); ok {
   312  		r0 = rf()
   313  	} else {
   314  		if ret.Get(0) != nil {
   315  			r0 = ret.Get(0).(*gorp.DbMap)
   316  		}
   317  	}
   318  
   319  	return r0
   320  }
   321  
   322  // GetMaxLengthOfColumnIfExists provides a mock function with given fields: tableName, columnName
   323  func (_m *SqlStore) GetMaxLengthOfColumnIfExists(tableName string, columnName string) string {
   324  	ret := _m.Called(tableName, columnName)
   325  
   326  	var r0 string
   327  	if rf, ok := ret.Get(0).(func(string, string) string); ok {
   328  		r0 = rf(tableName, columnName)
   329  	} else {
   330  		r0 = ret.Get(0).(string)
   331  	}
   332  
   333  	return r0
   334  }
   335  
   336  // GetReplica provides a mock function with given fields:
   337  func (_m *SqlStore) GetReplica() *gorp.DbMap {
   338  	ret := _m.Called()
   339  
   340  	var r0 *gorp.DbMap
   341  	if rf, ok := ret.Get(0).(func() *gorp.DbMap); ok {
   342  		r0 = rf()
   343  	} else {
   344  		if ret.Get(0) != nil {
   345  			r0 = ret.Get(0).(*gorp.DbMap)
   346  		}
   347  	}
   348  
   349  	return r0
   350  }
   351  
   352  // GetSearchReplica provides a mock function with given fields:
   353  func (_m *SqlStore) GetSearchReplica() *gorp.DbMap {
   354  	ret := _m.Called()
   355  
   356  	var r0 *gorp.DbMap
   357  	if rf, ok := ret.Get(0).(func() *gorp.DbMap); ok {
   358  		r0 = rf()
   359  	} else {
   360  		if ret.Get(0) != nil {
   361  			r0 = ret.Get(0).(*gorp.DbMap)
   362  		}
   363  	}
   364  
   365  	return r0
   366  }
   367  
   368  // Job provides a mock function with given fields:
   369  func (_m *SqlStore) Job() store.JobStore {
   370  	ret := _m.Called()
   371  
   372  	var r0 store.JobStore
   373  	if rf, ok := ret.Get(0).(func() store.JobStore); ok {
   374  		r0 = rf()
   375  	} else {
   376  		if ret.Get(0) != nil {
   377  			r0 = ret.Get(0).(store.JobStore)
   378  		}
   379  	}
   380  
   381  	return r0
   382  }
   383  
   384  // License provides a mock function with given fields:
   385  func (_m *SqlStore) License() store.LicenseStore {
   386  	ret := _m.Called()
   387  
   388  	var r0 store.LicenseStore
   389  	if rf, ok := ret.Get(0).(func() store.LicenseStore); ok {
   390  		r0 = rf()
   391  	} else {
   392  		if ret.Get(0) != nil {
   393  			r0 = ret.Get(0).(store.LicenseStore)
   394  		}
   395  	}
   396  
   397  	return r0
   398  }
   399  
   400  // MarkSystemRanUnitTests provides a mock function with given fields:
   401  func (_m *SqlStore) MarkSystemRanUnitTests() {
   402  	_m.Called()
   403  }
   404  
   405  // OAuth provides a mock function with given fields:
   406  func (_m *SqlStore) OAuth() store.OAuthStore {
   407  	ret := _m.Called()
   408  
   409  	var r0 store.OAuthStore
   410  	if rf, ok := ret.Get(0).(func() store.OAuthStore); ok {
   411  		r0 = rf()
   412  	} else {
   413  		if ret.Get(0) != nil {
   414  			r0 = ret.Get(0).(store.OAuthStore)
   415  		}
   416  	}
   417  
   418  	return r0
   419  }
   420  
   421  // Plugin provides a mock function with given fields:
   422  func (_m *SqlStore) Plugin() store.PluginStore {
   423  	ret := _m.Called()
   424  
   425  	var r0 store.PluginStore
   426  	if rf, ok := ret.Get(0).(func() store.PluginStore); ok {
   427  		r0 = rf()
   428  	} else {
   429  		if ret.Get(0) != nil {
   430  			r0 = ret.Get(0).(store.PluginStore)
   431  		}
   432  	}
   433  
   434  	return r0
   435  }
   436  
   437  // Post provides a mock function with given fields:
   438  func (_m *SqlStore) Post() store.PostStore {
   439  	ret := _m.Called()
   440  
   441  	var r0 store.PostStore
   442  	if rf, ok := ret.Get(0).(func() store.PostStore); ok {
   443  		r0 = rf()
   444  	} else {
   445  		if ret.Get(0) != nil {
   446  			r0 = ret.Get(0).(store.PostStore)
   447  		}
   448  	}
   449  
   450  	return r0
   451  }
   452  
   453  // Preference provides a mock function with given fields:
   454  func (_m *SqlStore) Preference() store.PreferenceStore {
   455  	ret := _m.Called()
   456  
   457  	var r0 store.PreferenceStore
   458  	if rf, ok := ret.Get(0).(func() store.PreferenceStore); ok {
   459  		r0 = rf()
   460  	} else {
   461  		if ret.Get(0) != nil {
   462  			r0 = ret.Get(0).(store.PreferenceStore)
   463  		}
   464  	}
   465  
   466  	return r0
   467  }
   468  
   469  // Reaction provides a mock function with given fields:
   470  func (_m *SqlStore) Reaction() store.ReactionStore {
   471  	ret := _m.Called()
   472  
   473  	var r0 store.ReactionStore
   474  	if rf, ok := ret.Get(0).(func() store.ReactionStore); ok {
   475  		r0 = rf()
   476  	} else {
   477  		if ret.Get(0) != nil {
   478  			r0 = ret.Get(0).(store.ReactionStore)
   479  		}
   480  	}
   481  
   482  	return r0
   483  }
   484  
   485  // RemoveColumnIfExists provides a mock function with given fields: tableName, columnName
   486  func (_m *SqlStore) RemoveColumnIfExists(tableName string, columnName string) bool {
   487  	ret := _m.Called(tableName, columnName)
   488  
   489  	var r0 bool
   490  	if rf, ok := ret.Get(0).(func(string, string) bool); ok {
   491  		r0 = rf(tableName, columnName)
   492  	} else {
   493  		r0 = ret.Get(0).(bool)
   494  	}
   495  
   496  	return r0
   497  }
   498  
   499  // RemoveIndexIfExists provides a mock function with given fields: indexName, tableName
   500  func (_m *SqlStore) RemoveIndexIfExists(indexName string, tableName string) bool {
   501  	ret := _m.Called(indexName, tableName)
   502  
   503  	var r0 bool
   504  	if rf, ok := ret.Get(0).(func(string, string) bool); ok {
   505  		r0 = rf(indexName, tableName)
   506  	} else {
   507  		r0 = ret.Get(0).(bool)
   508  	}
   509  
   510  	return r0
   511  }
   512  
   513  // RemoveTableIfExists provides a mock function with given fields: tableName
   514  func (_m *SqlStore) RemoveTableIfExists(tableName string) bool {
   515  	ret := _m.Called(tableName)
   516  
   517  	var r0 bool
   518  	if rf, ok := ret.Get(0).(func(string) bool); ok {
   519  		r0 = rf(tableName)
   520  	} else {
   521  		r0 = ret.Get(0).(bool)
   522  	}
   523  
   524  	return r0
   525  }
   526  
   527  // RenameColumnIfExists provides a mock function with given fields: tableName, oldColumnName, newColumnName, colType
   528  func (_m *SqlStore) RenameColumnIfExists(tableName string, oldColumnName string, newColumnName string, colType string) bool {
   529  	ret := _m.Called(tableName, oldColumnName, newColumnName, colType)
   530  
   531  	var r0 bool
   532  	if rf, ok := ret.Get(0).(func(string, string, string, string) bool); ok {
   533  		r0 = rf(tableName, oldColumnName, newColumnName, colType)
   534  	} else {
   535  		r0 = ret.Get(0).(bool)
   536  	}
   537  
   538  	return r0
   539  }
   540  
   541  // Role provides a mock function with given fields:
   542  func (_m *SqlStore) Role() store.RoleStore {
   543  	ret := _m.Called()
   544  
   545  	var r0 store.RoleStore
   546  	if rf, ok := ret.Get(0).(func() store.RoleStore); ok {
   547  		r0 = rf()
   548  	} else {
   549  		if ret.Get(0) != nil {
   550  			r0 = ret.Get(0).(store.RoleStore)
   551  		}
   552  	}
   553  
   554  	return r0
   555  }
   556  
   557  // Session provides a mock function with given fields:
   558  func (_m *SqlStore) Session() store.SessionStore {
   559  	ret := _m.Called()
   560  
   561  	var r0 store.SessionStore
   562  	if rf, ok := ret.Get(0).(func() store.SessionStore); ok {
   563  		r0 = rf()
   564  	} else {
   565  		if ret.Get(0) != nil {
   566  			r0 = ret.Get(0).(store.SessionStore)
   567  		}
   568  	}
   569  
   570  	return r0
   571  }
   572  
   573  // Status provides a mock function with given fields:
   574  func (_m *SqlStore) Status() store.StatusStore {
   575  	ret := _m.Called()
   576  
   577  	var r0 store.StatusStore
   578  	if rf, ok := ret.Get(0).(func() store.StatusStore); ok {
   579  		r0 = rf()
   580  	} else {
   581  		if ret.Get(0) != nil {
   582  			r0 = ret.Get(0).(store.StatusStore)
   583  		}
   584  	}
   585  
   586  	return r0
   587  }
   588  
   589  // System provides a mock function with given fields:
   590  func (_m *SqlStore) System() store.SystemStore {
   591  	ret := _m.Called()
   592  
   593  	var r0 store.SystemStore
   594  	if rf, ok := ret.Get(0).(func() store.SystemStore); ok {
   595  		r0 = rf()
   596  	} else {
   597  		if ret.Get(0) != nil {
   598  			r0 = ret.Get(0).(store.SystemStore)
   599  		}
   600  	}
   601  
   602  	return r0
   603  }
   604  
   605  // Team provides a mock function with given fields:
   606  func (_m *SqlStore) Team() store.TeamStore {
   607  	ret := _m.Called()
   608  
   609  	var r0 store.TeamStore
   610  	if rf, ok := ret.Get(0).(func() store.TeamStore); ok {
   611  		r0 = rf()
   612  	} else {
   613  		if ret.Get(0) != nil {
   614  			r0 = ret.Get(0).(store.TeamStore)
   615  		}
   616  	}
   617  
   618  	return r0
   619  }
   620  
   621  // Token provides a mock function with given fields:
   622  func (_m *SqlStore) Token() store.TokenStore {
   623  	ret := _m.Called()
   624  
   625  	var r0 store.TokenStore
   626  	if rf, ok := ret.Get(0).(func() store.TokenStore); ok {
   627  		r0 = rf()
   628  	} else {
   629  		if ret.Get(0) != nil {
   630  			r0 = ret.Get(0).(store.TokenStore)
   631  		}
   632  	}
   633  
   634  	return r0
   635  }
   636  
   637  // TotalMasterDbConnections provides a mock function with given fields:
   638  func (_m *SqlStore) TotalMasterDbConnections() int {
   639  	ret := _m.Called()
   640  
   641  	var r0 int
   642  	if rf, ok := ret.Get(0).(func() int); ok {
   643  		r0 = rf()
   644  	} else {
   645  		r0 = ret.Get(0).(int)
   646  	}
   647  
   648  	return r0
   649  }
   650  
   651  // TotalReadDbConnections provides a mock function with given fields:
   652  func (_m *SqlStore) TotalReadDbConnections() int {
   653  	ret := _m.Called()
   654  
   655  	var r0 int
   656  	if rf, ok := ret.Get(0).(func() int); ok {
   657  		r0 = rf()
   658  	} else {
   659  		r0 = ret.Get(0).(int)
   660  	}
   661  
   662  	return r0
   663  }
   664  
   665  // TotalSearchDbConnections provides a mock function with given fields:
   666  func (_m *SqlStore) TotalSearchDbConnections() int {
   667  	ret := _m.Called()
   668  
   669  	var r0 int
   670  	if rf, ok := ret.Get(0).(func() int); ok {
   671  		r0 = rf()
   672  	} else {
   673  		r0 = ret.Get(0).(int)
   674  	}
   675  
   676  	return r0
   677  }
   678  
   679  // User provides a mock function with given fields:
   680  func (_m *SqlStore) User() store.UserStore {
   681  	ret := _m.Called()
   682  
   683  	var r0 store.UserStore
   684  	if rf, ok := ret.Get(0).(func() store.UserStore); ok {
   685  		r0 = rf()
   686  	} else {
   687  		if ret.Get(0) != nil {
   688  			r0 = ret.Get(0).(store.UserStore)
   689  		}
   690  	}
   691  
   692  	return r0
   693  }
   694  
   695  // UserAccessToken provides a mock function with given fields:
   696  func (_m *SqlStore) UserAccessToken() store.UserAccessTokenStore {
   697  	ret := _m.Called()
   698  
   699  	var r0 store.UserAccessTokenStore
   700  	if rf, ok := ret.Get(0).(func() store.UserAccessTokenStore); ok {
   701  		r0 = rf()
   702  	} else {
   703  		if ret.Get(0) != nil {
   704  			r0 = ret.Get(0).(store.UserAccessTokenStore)
   705  		}
   706  	}
   707  
   708  	return r0
   709  }
   710  
   711  // Webhook provides a mock function with given fields:
   712  func (_m *SqlStore) Webhook() store.WebhookStore {
   713  	ret := _m.Called()
   714  
   715  	var r0 store.WebhookStore
   716  	if rf, ok := ret.Get(0).(func() store.WebhookStore); ok {
   717  		r0 = rf()
   718  	} else {
   719  		if ret.Get(0) != nil {
   720  			r0 = ret.Get(0).(store.WebhookStore)
   721  		}
   722  	}
   723  
   724  	return r0
   725  }