mirror of
https://github.com/hanzoai/team.git
synced 2026-09-30 01:57:35 +00:00
The server module named github.com/hanzoai/team/server/v8 — a path that resolves to the retired workspace's repository, not this one — while server/public still published github.com/mattermost/mattermost/server/public. Both are github.com/hanzoteam/server/... now, which is where this code actually lives. That second half is what made the binary unbootable. Upstream's public path stayed claimed by upstream, mattermost-plugin-ai imported it, and the build linked public/model twice; public/plugin's gob.Register then ran twice under one name and panicked at init, before main. Reverting the rename traded the brand for a working binary. Rebranding the plugin alongside it needs no such trade: the agents fork is github.com/hanzoteam/agents/v2 against our public module, so no module named mattermost/mattermost is in the graph at all. Measured: `go list -deps ./cmd/mattermost` names exactly one public/model, and it is ours.
78 lines
2.2 KiB
Go
78 lines
2.2 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/hanzoteam/server/server/public/pluginapi/experimental/bot (interfaces: Bot)
|
|
|
|
// Package mock_bot is a generated GoMock package.
|
|
package mock_bot
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
model "github.com/hanzoteam/server/server/public/model"
|
|
)
|
|
|
|
// MockBot is a mock of Bot interface.
|
|
type MockBot struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockBotMockRecorder
|
|
}
|
|
|
|
// MockBotMockRecorder is the mock recorder for MockBot.
|
|
type MockBotMockRecorder struct {
|
|
mock *MockBot
|
|
}
|
|
|
|
// NewMockBot creates a new mock instance.
|
|
func NewMockBot(ctrl *gomock.Controller) *MockBot {
|
|
mock := &MockBot{ctrl: ctrl}
|
|
mock.recorder = &MockBotMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockBot) EXPECT() *MockBotMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Ensure mocks base method.
|
|
func (m *MockBot) Ensure(arg0 *model.Bot, arg1 string) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Ensure", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Ensure indicates an expected call of Ensure.
|
|
func (mr *MockBotMockRecorder) Ensure(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ensure", reflect.TypeOf((*MockBot)(nil).Ensure), arg0, arg1)
|
|
}
|
|
|
|
// MattermostUserID mocks base method.
|
|
func (m *MockBot) MattermostUserID() string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "MattermostUserID")
|
|
ret0, _ := ret[0].(string)
|
|
return ret0
|
|
}
|
|
|
|
// MattermostUserID indicates an expected call of MattermostUserID.
|
|
func (mr *MockBotMockRecorder) MattermostUserID() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MattermostUserID", reflect.TypeOf((*MockBot)(nil).MattermostUserID))
|
|
}
|
|
|
|
// String mocks base method.
|
|
func (m *MockBot) String() string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "String")
|
|
ret0, _ := ret[0].(string)
|
|
return ret0
|
|
}
|
|
|
|
// String indicates an expected call of String.
|
|
func (mr *MockBotMockRecorder) String() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockBot)(nil).String))
|
|
}
|