diff options
| author | Shulhan <ms@kilabit.info> | 2018-05-26 23:58:00 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2018-05-27 02:34:34 +0700 |
| commit | 519c842c438b4a7db3e716b323aa4f821aac401d (patch) | |
| tree | e16916dd8ef66274acffd065b14f541ae8ac2e78 /beku_test.go | |
| parent | 0f902e44e4753fd008582ce3ce9c313da94b8882 (diff) | |
| download | beku-519c842c438b4a7db3e716b323aa4f821aac401d.tar.xz | |
[test] package: check for nil before comparing with expected value
Diffstat (limited to 'beku_test.go')
| -rw-r--r-- | beku_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/beku_test.go b/beku_test.go index e41640e..2660aad 100644 --- a/beku_test.go +++ b/beku_test.go @@ -74,6 +74,13 @@ func testResetOutput(t *testing.T, truncate bool) { } } +func testPrintOutput(t *testing.T) { + testResetOutput(t, false) + stdout, stderr := testGetOutput(t) + t.Log(">>> stdout:\n", stdout) + t.Log(">>> stderr:\n", stderr) +} + func TestMain(m *testing.M) { orgGOPATH := build.Default.GOPATH |
