github.com/turingchain2020/turingchain@v1.1.21/blockchain/mocks/post_service.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 types "github.com/turingchain2020/turingchain/types" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // PostService is an autogenerated mock type for the PostService type 11 type PostService struct { 12 mock.Mock 13 } 14 15 // PostData provides a mock function with given fields: subscribe, postdata, seq 16 func (_m *PostService) PostData(subscribe *types.PushSubscribeReq, postdata []byte, seq int64) error { 17 ret := _m.Called(subscribe, postdata, seq) 18 19 var r0 error 20 if rf, ok := ret.Get(0).(func(*types.PushSubscribeReq, []byte, int64) error); ok { 21 r0 = rf(subscribe, postdata, seq) 22 } else { 23 r0 = ret.Error(0) 24 } 25 26 return r0 27 }