Cleanup dead code (#12929)
* Cleanup dead code * Remove unneeded translation string
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
71d5f7dc64
Коммит
fdcda20fe4
@@ -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)
|
||||
|
||||
Ссылка в новой задаче
Block a user