* Cleanup dead code

* Remove unneeded translation string
Этот коммит содержится в:
Ben Schumacher
2019-10-28 19:12:50 +01:00
коммит произвёл GitHub
родитель 71d5f7dc64
Коммит fdcda20fe4
8 изменённых файлов: 2 добавлений и 138 удалений

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

@@ -10,21 +10,11 @@ import (
"os/exec"
"path/filepath"
"runtime"
"strings"
"testing"
"github.com/stretchr/testify/require"
)
func goMod(t *testing.T, dir string, args ...string) {
cmd := exec.Command("go", append([]string{"mod"}, args...)...)
cmd.Dir = dir
output, err := cmd.CombinedOutput()
if err != nil {
t.Fatalf("Failed to %s: %s", strings.Join(args, " "), string(output))
}
}
func CompileGo(t *testing.T, sourceCode, outputPath string) {
dir, err := ioutil.TempDir(".", "")
require.NoError(t, err)