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

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

@@ -1,7 +1,7 @@
package plugin
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
type API interface {

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

@@ -8,8 +8,8 @@ import (
"github.com/pkg/errors"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/plugin"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/plugin"
)
type APIProviderFunc func(*model.Manifest) (plugin.API, error)

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

@@ -11,9 +11,9 @@ import (
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
"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"
)
type MockProvider struct {

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

@@ -3,9 +3,9 @@ package pluginenv
import (
"fmt"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/plugin"
"github.com/mattermost/platform/plugin/rpcplugin"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/plugin"
"github.com/mattermost/mattermost-server/plugin/rpcplugin"
)
// APIProvider specifies a function that provides an API implementation to each plugin.

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

@@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/plugin/rpcplugin"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/plugin/rpcplugin"
)
func TestDefaultSupervisorProvider(t *testing.T) {

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

@@ -4,7 +4,7 @@ import (
"io/ioutil"
"path/filepath"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
// Performs a full scan of the given path.

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

@@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
func TestScanSearchPath(t *testing.T) {

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

@@ -3,8 +3,8 @@ package plugintest
import (
"github.com/stretchr/testify/mock"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/plugin"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/plugin"
)
type API struct {

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

@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/mock"
"github.com/mattermost/platform/plugin"
"github.com/mattermost/mattermost-server/plugin"
)
type Hooks struct {

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

@@ -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 {}