Skip to content
Snippets Groups Projects
Select Git revision
  • 1b0bc521664664e4d8c69909872c09d7ad0d9544
  • master default protected
  • feature/PRXS-3383-CollectionsSort
  • refactor/PRXS-3053-Files
  • feature/PRXS-3143-3235-ReferenceOptions
  • feature/PRXS-3421-ImplementNewRefAPI
  • feature/PRXS-3143-LimitReferenceFields
  • feature/PRXS-3234-FeaturePruneIdents
  • feature/3149-LocaleCodeAsID-Feature
  • PRXS-3421-RecursiveReferences
  • 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
  • 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

action_handler.go

Blame
  • CollectionSetSchemaObserver.go 1.66 KiB
    // Code generated by mockery v2.33.3. DO NOT EDIT.
    
    package mocks
    
    import (
    	context "context"
    
    	collections "git.perx.ru/perxis/perxis-go/pkg/collections"
    
    	mock "github.com/stretchr/testify/mock"
    )
    
    // CollectionSetSchemaObserver is an autogenerated mock type for the CollectionSetSchemaObserver type
    type CollectionSetSchemaObserver struct {
    	mock.Mock
    }
    
    // OnCollectionSetSchema provides a mock function with given fields: ctx, before, coll
    func (_m *CollectionSetSchemaObserver) OnCollectionSetSchema(ctx context.Context, before *collections.Collection, coll *collections.Collection) (string, error) {
    	ret := _m.Called(ctx, before, coll)
    
    	var r0 string
    	var r1 error
    	if rf, ok := ret.Get(0).(func(context.Context, *collections.Collection, *collections.Collection) (string, error)); ok {
    		return rf(ctx, before, coll)
    	}
    	if rf, ok := ret.Get(0).(func(context.Context, *collections.Collection, *collections.Collection) string); ok {
    		r0 = rf(ctx, before, coll)
    	} else {
    		r0 = ret.Get(0).(string)
    	}
    
    	if rf, ok := ret.Get(1).(func(context.Context, *collections.Collection, *collections.Collection) error); ok {
    		r1 = rf(ctx, before, coll)
    	} else {
    		r1 = ret.Error(1)
    	}
    
    	return r0, r1
    }
    
    // NewCollectionSetSchemaObserver creates a new instance of CollectionSetSchemaObserver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    // The first argument is typically a *testing.T value.
    func NewCollectionSetSchemaObserver(t interface {
    	mock.TestingT
    	Cleanup(func())
    }) *CollectionSetSchemaObserver {
    	mock := &CollectionSetSchemaObserver{}
    	mock.Mock.Test(t)
    
    	t.Cleanup(func() { mock.AssertExpectations(t) })
    
    	return mock
    }