github.com/mad-app/mattermost-server@v5.11.1+incompatible/store/storetest/mocks/SqlSupplier.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 gorp "github.com/mattermost/gorp"
     8  import mock "github.com/stretchr/testify/mock"
     9  
    10  // SqlSupplier is an autogenerated mock type for the SqlSupplier type
    11  type SqlSupplier struct {
    12  	mock.Mock
    13  }
    14  
    15  // GetMaster provides a mock function with given fields:
    16  func (_m *SqlSupplier) GetMaster() *gorp.DbMap {
    17  	ret := _m.Called()
    18  
    19  	var r0 *gorp.DbMap
    20  	if rf, ok := ret.Get(0).(func() *gorp.DbMap); ok {
    21  		r0 = rf()
    22  	} else {
    23  		if ret.Get(0) != nil {
    24  			r0 = ret.Get(0).(*gorp.DbMap)
    25  		}
    26  	}
    27  
    28  	return r0
    29  }