Skip to content
Snippets Groups Projects
Select Git revision
  • 4a4c3f1c3ae7400a86169e4192230a864d663acd
  • master default protected
  • feature/PRXS-3383-CollectionsRankSortAPI
  • fix/PRXS-3401-ValidateValidationOpts
  • feature/3149-LocaleCodeAsID-Feature
  • feature/PRXS-3383-CollectionsSort
  • feature/3109-SerializeFeature
  • release/0.33
  • feature/3109-RecoverySchema
  • feature/3109-feature
  • fix/PRXS-3369-ValidateFields
  • refactor/PRXS-3306-MovePkgGroup1
  • refactor/6-pkg-refactor-expr
  • fix/PRXS-3360-TemplateBuilderPatch
  • feature/3293-MongoV2
  • feature/3272-GoVersionUp
  • feature/PRXS-3218-HideTemplateActions
  • feature/PRXS-3234-PruneIdents
  • feature/3146-UpdateItemStorageInterface
  • feature/3274-ObjectIndexesFixes
  • feature/PRXS-3143-3235-ReferenceOptions
  • v0.33.1
  • v0.32.0
  • v0.31.1
  • v0.31.0
  • v0.30.0
  • v0.29.0
  • v0.28.0
  • v0.27.0-alpha.1+16
  • v0.27.0-alpha.1+15
  • v0.27.0-alpha.1+14
  • v0.27.0-alpha.1+13
  • v0.27.0-alpha.1+12
  • v0.27.0-alpha.1+11
  • v0.27.0-alpha.1+10
  • v0.27.0-alpha.1+9
  • v0.27.0-alpha.1+8
  • v0.27.0-alpha.1+7
  • v0.27.0-alpha.1+6
  • v0.27.0-alpha.1+5
  • v0.27.0-alpha.1+4
41 results

Middleware.go

Blame
  • Middleware.go 1.10 KiB
    // Code generated by mockery v2.15.0. DO NOT EDIT.
    
    package mocks
    
    import (
    	invitations "git.perx.ru/perxis/perxis-go/pkg/invitations"
    
    	mock "github.com/stretchr/testify/mock"
    )
    
    // Middleware is an autogenerated mock type for the Middleware type
    type Middleware struct {
    	mock.Mock
    }
    
    // Execute provides a mock function with given fields: _a0
    func (_m *Middleware) Execute(_a0 invitations.Invitations) invitations.Invitations {
    	ret := _m.Called(_a0)
    
    	var r0 invitations.Invitations
    	if rf, ok := ret.Get(0).(func(invitations.Invitations) invitations.Invitations); ok {
    		r0 = rf(_a0)
    	} else {
    		if ret.Get(0) != nil {
    			r0 = ret.Get(0).(invitations.Invitations)
    		}
    	}
    
    	return r0
    }
    
    type mockConstructorTestingTNewMiddleware interface {
    	mock.TestingT
    	Cleanup(func())
    }
    
    // NewMiddleware creates a new instance of Middleware. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    func NewMiddleware(t mockConstructorTestingTNewMiddleware) *Middleware {
    	mock := &Middleware{}
    	mock.Mock.Test(t)
    
    	t.Cleanup(func() { mock.AssertExpectations(t) })
    
    	return mock
    }