mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-06 20:49:33 -06:00
add mock package
This commit is contained in:
parent
998adc5591
commit
33fa76baef
11 changed files with 766 additions and 0 deletions
44
mocks/internal/router/Router.go
Normal file
44
mocks/internal/router/Router.go
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
// Code generated by mockery v2.7.4. DO NOT EDIT.
|
||||
|
||||
package mocks
|
||||
|
||||
import (
|
||||
context "context"
|
||||
|
||||
gin "github.com/gin-gonic/gin"
|
||||
mock "github.com/stretchr/testify/mock"
|
||||
)
|
||||
|
||||
// Router is an autogenerated mock type for the Router type
|
||||
type Router struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
// AttachHandler provides a mock function with given fields: method, path, f
|
||||
func (_m *Router) AttachHandler(method string, path string, f gin.HandlerFunc) {
|
||||
_m.Called(method, path, f)
|
||||
}
|
||||
|
||||
// AttachMiddleware provides a mock function with given fields: handler
|
||||
func (_m *Router) AttachMiddleware(handler gin.HandlerFunc) {
|
||||
_m.Called(handler)
|
||||
}
|
||||
|
||||
// Start provides a mock function with given fields:
|
||||
func (_m *Router) Start() {
|
||||
_m.Called()
|
||||
}
|
||||
|
||||
// Stop provides a mock function with given fields: ctx
|
||||
func (_m *Router) Stop(ctx context.Context) error {
|
||||
ret := _m.Called(ctx)
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(context.Context) error); ok {
|
||||
r0 = rf(ctx)
|
||||
} else {
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
|
||||
return r0
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue