github.com/haalcala/mattermost-server-change-repo/v5@v5.33.2/store/storetest/mocks/SqlStore.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 (
     8  	gorp "github.com/mattermost/gorp"
     9  	mock "github.com/stretchr/testify/mock"
    10  )
    11  
    12  // SqlStore is an autogenerated mock type for the SqlStore type
    13  type SqlStore struct {
    14  	mock.Mock
    15  }
    16  
    17  // DriverName provides a mock function with given fields:
    18  func (_m *SqlStore) DriverName() string {
    19  	ret := _m.Called()
    20  
    21  	var r0 string
    22  	if rf, ok := ret.Get(0).(func() string); ok {
    23  		r0 = rf()
    24  	} else {
    25  		r0 = ret.Get(0).(string)
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  // GetMaster provides a mock function with given fields:
    32  func (_m *SqlStore) GetMaster() *gorp.DbMap {
    33  	ret := _m.Called()
    34  
    35  	var r0 *gorp.DbMap
    36  	if rf, ok := ret.Get(0).(func() *gorp.DbMap); ok {
    37  		r0 = rf()
    38  	} else {
    39  		if ret.Get(0) != nil {
    40  			r0 = ret.Get(0).(*gorp.DbMap)
    41  		}
    42  	}
    43  
    44  	return r0
    45  }