summaryrefslogtreecommitdiffstats
path: root/plugin/rpcplugin/rpcplugintest/rpcplugintest.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/rpcplugin/rpcplugintest/rpcplugintest.go')
-rw-r--r--plugin/rpcplugin/rpcplugintest/rpcplugintest.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/plugin/rpcplugin/rpcplugintest/rpcplugintest.go b/plugin/rpcplugin/rpcplugintest/rpcplugintest.go
deleted file mode 100644
index 185f741c1..000000000
--- a/plugin/rpcplugin/rpcplugintest/rpcplugintest.go
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
-// See License.txt for license information.
-
-package rpcplugintest
-
-import (
- "io/ioutil"
- "os"
- "os/exec"
- "path/filepath"
- "testing"
-
- "github.com/stretchr/testify/require"
-)
-
-func CompileGo(t *testing.T, sourceCode, outputPath string) {
- dir, err := ioutil.TempDir(".", "")
- require.NoError(t, err)
- defer os.RemoveAll(dir)
- require.NoError(t, ioutil.WriteFile(filepath.Join(dir, "main.go"), []byte(sourceCode), 0600))
- cmd := exec.Command("go", "build", "-o", outputPath, "main.go")
- cmd.Dir = dir
- cmd.Stdout = os.Stdout
- cmd.Stderr = os.Stderr
- require.NoError(t, cmd.Run())
-}