From 0a9aaa94429172d14297f709ec2137cd3749cfea Mon Sep 17 00:00:00 2001 From: Steve Moyer Date: Wed, 15 Jun 2022 09:07:00 -0400 Subject: refactor(778): test only command implementations --- commands/root_test.go | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 commands/root_test.go (limited to 'commands/root_test.go') diff --git a/commands/root_test.go b/commands/root_test.go deleted file mode 100644 index aaf708c8..00000000 --- a/commands/root_test.go +++ /dev/null @@ -1,35 +0,0 @@ -//go:build !windows -// +build !windows - -package commands_test - -import ( - "io/ioutil" - "path/filepath" - "testing" - - "github.com/stretchr/testify/require" -) - -func requireGoldenFileEqual(t *testing.T, path string, act []byte) { - t.Helper() - - path = filepath.Join("testdata", path) - - if *update { - require.NoError(t, ioutil.WriteFile(path, act, 0644)) - } - - exp, err := ioutil.ReadFile(path) - require.NoError(t, err) - require.Equal(t, string(exp), string(act)) -} - -func TestNewRootCommand(t *testing.T) { - t.Skip() - - testEnv := newTestEnv(t) - testEnv.Execute(t) - - requireGoldenFileEqual(t, "root_out_golden.txt", testEnv.out.Bytes()) -} -- cgit