Select Git revision
spaces.proto
CollaboratorSetObserver.go 1.54 KiB
// Code generated by mockery v2.33.3. DO NOT EDIT.
package mocks
import (
context "context"
collaborators "git.perx.ru/perxis/perxis-go/pkg/collaborators"
mock "github.com/stretchr/testify/mock"
)
// CollaboratorSetObserver is an autogenerated mock type for the CollaboratorSetObserver type
type CollaboratorSetObserver struct {
mock.Mock
}
// OnCollaboratorSet provides a mock function with given fields: ctx, collaborator
func (_m *CollaboratorSetObserver) OnCollaboratorSet(ctx context.Context, collaborator *collaborators.Collaborator) (string, error) {
ret := _m.Called(ctx, collaborator)
var r0 string
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, *collaborators.Collaborator) (string, error)); ok {
return rf(ctx, collaborator)
}
if rf, ok := ret.Get(0).(func(context.Context, *collaborators.Collaborator) string); ok {
r0 = rf(ctx, collaborator)
} else {
r0 = ret.Get(0).(string)
}
if rf, ok := ret.Get(1).(func(context.Context, *collaborators.Collaborator) error); ok {
r1 = rf(ctx, collaborator)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// NewCollaboratorSetObserver creates a new instance of CollaboratorSetObserver. 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 NewCollaboratorSetObserver(t interface {
mock.TestingT
Cleanup(func())
}) *CollaboratorSetObserver {
mock := &CollaboratorSetObserver{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}