Files
mostlymatter/plugin/plugintest/hooks.go
Chris f80d50adbd PLT-7407: Back-end plugin mechanism (#7177)
* 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
2017-08-16 17:23:38 -05:00

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)
}