Select Git revision
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
}