github.com/qichengzx/mattermost-server@v4.5.1-0.20180604164826-2c75247c97d0+incompatible/store/storetest/mocks/Store.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 mock "github.com/stretchr/testify/mock"
     8  import store "github.com/mattermost/mattermost-server/store"
     9  
    10  // Store is an autogenerated mock type for the Store type
    11  type Store struct {
    12  	mock.Mock
    13  }
    14  
    15  // Audit provides a mock function with given fields:
    16  func (_m *Store) Audit() store.AuditStore {
    17  	ret := _m.Called()
    18  
    19  	var r0 store.AuditStore
    20  	if rf, ok := ret.Get(0).(func() store.AuditStore); ok {
    21  		r0 = rf()
    22  	} else {
    23  		if ret.Get(0) != nil {
    24  			r0 = ret.Get(0).(store.AuditStore)
    25  		}
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  // Channel provides a mock function with given fields:
    32  func (_m *Store) Channel() store.ChannelStore {
    33  	ret := _m.Called()
    34  
    35  	var r0 store.ChannelStore
    36  	if rf, ok := ret.Get(0).(func() store.ChannelStore); ok {
    37  		r0 = rf()
    38  	} else {
    39  		if ret.Get(0) != nil {
    40  			r0 = ret.Get(0).(store.ChannelStore)
    41  		}
    42  	}
    43  
    44  	return r0
    45  }
    46  
    47  // ChannelMemberHistory provides a mock function with given fields:
    48  func (_m *Store) ChannelMemberHistory() store.ChannelMemberHistoryStore {
    49  	ret := _m.Called()
    50  
    51  	var r0 store.ChannelMemberHistoryStore
    52  	if rf, ok := ret.Get(0).(func() store.ChannelMemberHistoryStore); ok {
    53  		r0 = rf()
    54  	} else {
    55  		if ret.Get(0) != nil {
    56  			r0 = ret.Get(0).(store.ChannelMemberHistoryStore)
    57  		}
    58  	}
    59  
    60  	return r0
    61  }
    62  
    63  // Close provides a mock function with given fields:
    64  func (_m *Store) Close() {
    65  	_m.Called()
    66  }
    67  
    68  // ClusterDiscovery provides a mock function with given fields:
    69  func (_m *Store) 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 *Store) 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 *Store) 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 *Store) 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  // DropAllTables provides a mock function with given fields:
   133  func (_m *Store) DropAllTables() {
   134  	_m.Called()
   135  }
   136  
   137  // Emoji provides a mock function with given fields:
   138  func (_m *Store) Emoji() store.EmojiStore {
   139  	ret := _m.Called()
   140  
   141  	var r0 store.EmojiStore
   142  	if rf, ok := ret.Get(0).(func() store.EmojiStore); ok {
   143  		r0 = rf()
   144  	} else {
   145  		if ret.Get(0) != nil {
   146  			r0 = ret.Get(0).(store.EmojiStore)
   147  		}
   148  	}
   149  
   150  	return r0
   151  }
   152  
   153  // FileInfo provides a mock function with given fields:
   154  func (_m *Store) FileInfo() store.FileInfoStore {
   155  	ret := _m.Called()
   156  
   157  	var r0 store.FileInfoStore
   158  	if rf, ok := ret.Get(0).(func() store.FileInfoStore); ok {
   159  		r0 = rf()
   160  	} else {
   161  		if ret.Get(0) != nil {
   162  			r0 = ret.Get(0).(store.FileInfoStore)
   163  		}
   164  	}
   165  
   166  	return r0
   167  }
   168  
   169  // Job provides a mock function with given fields:
   170  func (_m *Store) Job() store.JobStore {
   171  	ret := _m.Called()
   172  
   173  	var r0 store.JobStore
   174  	if rf, ok := ret.Get(0).(func() store.JobStore); ok {
   175  		r0 = rf()
   176  	} else {
   177  		if ret.Get(0) != nil {
   178  			r0 = ret.Get(0).(store.JobStore)
   179  		}
   180  	}
   181  
   182  	return r0
   183  }
   184  
   185  // License provides a mock function with given fields:
   186  func (_m *Store) License() store.LicenseStore {
   187  	ret := _m.Called()
   188  
   189  	var r0 store.LicenseStore
   190  	if rf, ok := ret.Get(0).(func() store.LicenseStore); ok {
   191  		r0 = rf()
   192  	} else {
   193  		if ret.Get(0) != nil {
   194  			r0 = ret.Get(0).(store.LicenseStore)
   195  		}
   196  	}
   197  
   198  	return r0
   199  }
   200  
   201  // MarkSystemRanUnitTests provides a mock function with given fields:
   202  func (_m *Store) MarkSystemRanUnitTests() {
   203  	_m.Called()
   204  }
   205  
   206  // OAuth provides a mock function with given fields:
   207  func (_m *Store) OAuth() store.OAuthStore {
   208  	ret := _m.Called()
   209  
   210  	var r0 store.OAuthStore
   211  	if rf, ok := ret.Get(0).(func() store.OAuthStore); ok {
   212  		r0 = rf()
   213  	} else {
   214  		if ret.Get(0) != nil {
   215  			r0 = ret.Get(0).(store.OAuthStore)
   216  		}
   217  	}
   218  
   219  	return r0
   220  }
   221  
   222  // Plugin provides a mock function with given fields:
   223  func (_m *Store) Plugin() store.PluginStore {
   224  	ret := _m.Called()
   225  
   226  	var r0 store.PluginStore
   227  	if rf, ok := ret.Get(0).(func() store.PluginStore); ok {
   228  		r0 = rf()
   229  	} else {
   230  		if ret.Get(0) != nil {
   231  			r0 = ret.Get(0).(store.PluginStore)
   232  		}
   233  	}
   234  
   235  	return r0
   236  }
   237  
   238  // Post provides a mock function with given fields:
   239  func (_m *Store) Post() store.PostStore {
   240  	ret := _m.Called()
   241  
   242  	var r0 store.PostStore
   243  	if rf, ok := ret.Get(0).(func() store.PostStore); ok {
   244  		r0 = rf()
   245  	} else {
   246  		if ret.Get(0) != nil {
   247  			r0 = ret.Get(0).(store.PostStore)
   248  		}
   249  	}
   250  
   251  	return r0
   252  }
   253  
   254  // Preference provides a mock function with given fields:
   255  func (_m *Store) Preference() store.PreferenceStore {
   256  	ret := _m.Called()
   257  
   258  	var r0 store.PreferenceStore
   259  	if rf, ok := ret.Get(0).(func() store.PreferenceStore); ok {
   260  		r0 = rf()
   261  	} else {
   262  		if ret.Get(0) != nil {
   263  			r0 = ret.Get(0).(store.PreferenceStore)
   264  		}
   265  	}
   266  
   267  	return r0
   268  }
   269  
   270  // Reaction provides a mock function with given fields:
   271  func (_m *Store) Reaction() store.ReactionStore {
   272  	ret := _m.Called()
   273  
   274  	var r0 store.ReactionStore
   275  	if rf, ok := ret.Get(0).(func() store.ReactionStore); ok {
   276  		r0 = rf()
   277  	} else {
   278  		if ret.Get(0) != nil {
   279  			r0 = ret.Get(0).(store.ReactionStore)
   280  		}
   281  	}
   282  
   283  	return r0
   284  }
   285  
   286  // Role provides a mock function with given fields:
   287  func (_m *Store) Role() store.RoleStore {
   288  	ret := _m.Called()
   289  
   290  	var r0 store.RoleStore
   291  	if rf, ok := ret.Get(0).(func() store.RoleStore); ok {
   292  		r0 = rf()
   293  	} else {
   294  		if ret.Get(0) != nil {
   295  			r0 = ret.Get(0).(store.RoleStore)
   296  		}
   297  	}
   298  
   299  	return r0
   300  }
   301  
   302  // Scheme provides a mock function with given fields:
   303  func (_m *Store) Scheme() store.SchemeStore {
   304  	ret := _m.Called()
   305  
   306  	var r0 store.SchemeStore
   307  	if rf, ok := ret.Get(0).(func() store.SchemeStore); ok {
   308  		r0 = rf()
   309  	} else {
   310  		if ret.Get(0) != nil {
   311  			r0 = ret.Get(0).(store.SchemeStore)
   312  		}
   313  	}
   314  
   315  	return r0
   316  }
   317  
   318  // Session provides a mock function with given fields:
   319  func (_m *Store) Session() store.SessionStore {
   320  	ret := _m.Called()
   321  
   322  	var r0 store.SessionStore
   323  	if rf, ok := ret.Get(0).(func() store.SessionStore); ok {
   324  		r0 = rf()
   325  	} else {
   326  		if ret.Get(0) != nil {
   327  			r0 = ret.Get(0).(store.SessionStore)
   328  		}
   329  	}
   330  
   331  	return r0
   332  }
   333  
   334  // Status provides a mock function with given fields:
   335  func (_m *Store) Status() store.StatusStore {
   336  	ret := _m.Called()
   337  
   338  	var r0 store.StatusStore
   339  	if rf, ok := ret.Get(0).(func() store.StatusStore); ok {
   340  		r0 = rf()
   341  	} else {
   342  		if ret.Get(0) != nil {
   343  			r0 = ret.Get(0).(store.StatusStore)
   344  		}
   345  	}
   346  
   347  	return r0
   348  }
   349  
   350  // System provides a mock function with given fields:
   351  func (_m *Store) System() store.SystemStore {
   352  	ret := _m.Called()
   353  
   354  	var r0 store.SystemStore
   355  	if rf, ok := ret.Get(0).(func() store.SystemStore); ok {
   356  		r0 = rf()
   357  	} else {
   358  		if ret.Get(0) != nil {
   359  			r0 = ret.Get(0).(store.SystemStore)
   360  		}
   361  	}
   362  
   363  	return r0
   364  }
   365  
   366  // Team provides a mock function with given fields:
   367  func (_m *Store) Team() store.TeamStore {
   368  	ret := _m.Called()
   369  
   370  	var r0 store.TeamStore
   371  	if rf, ok := ret.Get(0).(func() store.TeamStore); ok {
   372  		r0 = rf()
   373  	} else {
   374  		if ret.Get(0) != nil {
   375  			r0 = ret.Get(0).(store.TeamStore)
   376  		}
   377  	}
   378  
   379  	return r0
   380  }
   381  
   382  // Token provides a mock function with given fields:
   383  func (_m *Store) Token() store.TokenStore {
   384  	ret := _m.Called()
   385  
   386  	var r0 store.TokenStore
   387  	if rf, ok := ret.Get(0).(func() store.TokenStore); ok {
   388  		r0 = rf()
   389  	} else {
   390  		if ret.Get(0) != nil {
   391  			r0 = ret.Get(0).(store.TokenStore)
   392  		}
   393  	}
   394  
   395  	return r0
   396  }
   397  
   398  // TotalMasterDbConnections provides a mock function with given fields:
   399  func (_m *Store) TotalMasterDbConnections() int {
   400  	ret := _m.Called()
   401  
   402  	var r0 int
   403  	if rf, ok := ret.Get(0).(func() int); ok {
   404  		r0 = rf()
   405  	} else {
   406  		r0 = ret.Get(0).(int)
   407  	}
   408  
   409  	return r0
   410  }
   411  
   412  // TotalReadDbConnections provides a mock function with given fields:
   413  func (_m *Store) TotalReadDbConnections() int {
   414  	ret := _m.Called()
   415  
   416  	var r0 int
   417  	if rf, ok := ret.Get(0).(func() int); ok {
   418  		r0 = rf()
   419  	} else {
   420  		r0 = ret.Get(0).(int)
   421  	}
   422  
   423  	return r0
   424  }
   425  
   426  // TotalSearchDbConnections provides a mock function with given fields:
   427  func (_m *Store) TotalSearchDbConnections() int {
   428  	ret := _m.Called()
   429  
   430  	var r0 int
   431  	if rf, ok := ret.Get(0).(func() int); ok {
   432  		r0 = rf()
   433  	} else {
   434  		r0 = ret.Get(0).(int)
   435  	}
   436  
   437  	return r0
   438  }
   439  
   440  // User provides a mock function with given fields:
   441  func (_m *Store) User() store.UserStore {
   442  	ret := _m.Called()
   443  
   444  	var r0 store.UserStore
   445  	if rf, ok := ret.Get(0).(func() store.UserStore); ok {
   446  		r0 = rf()
   447  	} else {
   448  		if ret.Get(0) != nil {
   449  			r0 = ret.Get(0).(store.UserStore)
   450  		}
   451  	}
   452  
   453  	return r0
   454  }
   455  
   456  // UserAccessToken provides a mock function with given fields:
   457  func (_m *Store) UserAccessToken() store.UserAccessTokenStore {
   458  	ret := _m.Called()
   459  
   460  	var r0 store.UserAccessTokenStore
   461  	if rf, ok := ret.Get(0).(func() store.UserAccessTokenStore); ok {
   462  		r0 = rf()
   463  	} else {
   464  		if ret.Get(0) != nil {
   465  			r0 = ret.Get(0).(store.UserAccessTokenStore)
   466  		}
   467  	}
   468  
   469  	return r0
   470  }
   471  
   472  // Webhook provides a mock function with given fields:
   473  func (_m *Store) Webhook() store.WebhookStore {
   474  	ret := _m.Called()
   475  
   476  	var r0 store.WebhookStore
   477  	if rf, ok := ret.Get(0).(func() store.WebhookStore); ok {
   478  		r0 = rf()
   479  	} else {
   480  		if ret.Get(0) != nil {
   481  			r0 = ret.Get(0).(store.WebhookStore)
   482  		}
   483  	}
   484  
   485  	return r0
   486  }