github.com/yandex/pandora@v0.5.32/core/mocks/gun.go (about)

     1  // Code generated by mockery v2.20.2. DO NOT EDIT.
     2  
     3  package coremock
     4  
     5  import (
     6  	core "github.com/yandex/pandora/core"
     7  	mock "github.com/stretchr/testify/mock"
     8  )
     9  
    10  // Gun is an autogenerated mock type for the Gun type
    11  type Gun struct {
    12  	mock.Mock
    13  }
    14  
    15  // Bind provides a mock function with given fields: aggr, deps
    16  func (_m *Gun) Bind(aggr core.Aggregator, deps core.GunDeps) error {
    17  	ret := _m.Called(aggr, deps)
    18  
    19  	var r0 error
    20  	if rf, ok := ret.Get(0).(func(core.Aggregator, core.GunDeps) error); ok {
    21  		r0 = rf(aggr, deps)
    22  	} else {
    23  		r0 = ret.Error(0)
    24  	}
    25  
    26  	return r0
    27  }
    28  
    29  // Shoot provides a mock function with given fields: ammo
    30  func (_m *Gun) Shoot(ammo core.Ammo) {
    31  	_m.Called(ammo)
    32  }
    33  
    34  type mockConstructorTestingTNewGun interface {
    35  	mock.TestingT
    36  	Cleanup(func())
    37  }
    38  
    39  // NewGun creates a new instance of Gun. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    40  func NewGun(t mockConstructorTestingTNewGun) *Gun {
    41  	mock := &Gun{}
    42  	mock.Mock.Test(t)
    43  
    44  	t.Cleanup(func() { mock.AssertExpectations(t) })
    45  
    46  	return mock
    47  }