diff options
author | Steve Moyer <smoyer1@selesy.com> | 2022-06-15 09:07:00 -0400 |
---|---|---|
committer | Steve Moyer <smoyer1@selesy.com> | 2022-06-15 09:07:00 -0400 |
commit | 0a9aaa94429172d14297f709ec2137cd3749cfea (patch) | |
tree | 8a5ed7f8168d3aadfb1b80a86f2d4bbe97bf2742 /commands/root_test.go | |
parent | 941f5b3fc362be388dd3bd979799dd296daec243 (diff) | |
download | git-bug-0a9aaa94429172d14297f709ec2137cd3749cfea.tar.gz |
refactor(778): test only command implementations
Diffstat (limited to 'commands/root_test.go')
-rw-r--r-- | commands/root_test.go | 35 |
1 files changed, 0 insertions, 35 deletions
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()) -} |