Этот коммит содержится в:
Christopher Speller
2017-09-06 23:05:10 -07:00
родитель d8bd57901e
Коммит 29fca51821
326 изменённых файлов: 734 добавлений и 735 удалений

Просмотреть файл

@@ -6,8 +6,8 @@ import (
"net/http"
"net/rpc"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/plugin"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/plugin"
)
type LocalAPI struct {

Просмотреть файл

@@ -9,9 +9,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/plugin"
"github.com/mattermost/platform/plugin/plugintest"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/plugin"
"github.com/mattermost/mattermost-server/plugin/plugintest"
)
func testAPIRPC(api plugin.API, f func(plugin.API)) {

Просмотреть файл

@@ -8,7 +8,7 @@ import (
"net/rpc"
"reflect"
"github.com/mattermost/platform/plugin"
"github.com/mattermost/mattermost-server/plugin"
)
type LocalHooks struct {

Просмотреть файл

@@ -11,8 +11,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/mattermost/platform/plugin"
"github.com/mattermost/platform/plugin/plugintest"
"github.com/mattermost/mattermost-server/plugin"
"github.com/mattermost/mattermost-server/plugin/plugintest"
)
func testHooksRPC(hooks interface{}, f func(*RemoteHooks)) error {

Просмотреть файл

@@ -23,7 +23,7 @@ func TestIPC(t *testing.T) {
import (
"log"
"github.com/mattermost/platform/plugin/rpcplugin"
"github.com/mattermost/mattermost-server/plugin/rpcplugin"
)
func main() {

Просмотреть файл

@@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/platform/plugin/plugintest"
"github.com/mattermost/mattermost-server/plugin/plugintest"
)
func TestMain(t *testing.T) {
@@ -23,7 +23,7 @@ func TestMain(t *testing.T) {
package main
import (
"github.com/mattermost/platform/plugin/rpcplugin"
"github.com/mattermost/mattermost-server/plugin/rpcplugin"
)
type MyPlugin struct {}

Просмотреть файл

@@ -36,7 +36,7 @@ func TestProcess(t *testing.T) {
import (
"log"
"github.com/mattermost/platform/plugin/rpcplugin"
"github.com/mattermost/mattermost-server/plugin/rpcplugin"
)
func main() {

Просмотреть файл

@@ -7,8 +7,8 @@ import (
"sync/atomic"
"time"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/plugin"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/plugin"
)
// Supervisor implements a plugin.Supervisor that launches the plugin in a separate process and

Просмотреть файл

@@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
func TestSupervisor(t *testing.T) {
@@ -23,7 +23,7 @@ func TestSupervisor(t *testing.T) {
package main
import (
"github.com/mattermost/platform/plugin/rpcplugin"
"github.com/mattermost/mattermost-server/plugin/rpcplugin"
)
type MyPlugin struct {}
@@ -80,8 +80,8 @@ func TestSupervisor_PluginCrash(t *testing.T) {
import (
"os"
"github.com/mattermost/platform/plugin"
"github.com/mattermost/platform/plugin/rpcplugin"
"github.com/mattermost/mattermost-server/plugin"
"github.com/mattermost/mattermost-server/plugin/rpcplugin"
)
type MyPlugin struct {}