* begin backend plugin wip * flesh out rpcplugin. everything done except for minor supervisor stubs * done with basic plugin infrastructure * simplify tests * remove unused test lines
22 строки
334 B
Go
22 строки
334 B
Go
package plugintest
|
|
|
|
import (
|
|
"github.com/stretchr/testify/mock"
|
|
|
|
"github.com/mattermost/platform/plugin"
|
|
)
|
|
|
|
type Hooks struct {
|
|
mock.Mock
|
|
}
|
|
|
|
var _ plugin.Hooks = (*Hooks)(nil)
|
|
|
|
func (m *Hooks) OnActivate(api plugin.API) error {
|
|
return m.Called(api).Error(0)
|
|
}
|
|
|
|
func (m *Hooks) OnDeactivate() error {
|
|
return m.Called().Error(0)
|
|
}
|