aboutsummaryrefslogtreecommitdiff
path: root/beku_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2018-05-26 23:58:00 +0700
committerShulhan <ms@kilabit.info>2018-05-27 02:34:34 +0700
commit519c842c438b4a7db3e716b323aa4f821aac401d (patch)
treee16916dd8ef66274acffd065b14f541ae8ac2e78 /beku_test.go
parent0f902e44e4753fd008582ce3ce9c313da94b8882 (diff)
downloadbeku-519c842c438b4a7db3e716b323aa4f821aac401d.tar.xz
[test] package: check for nil before comparing with expected value
Diffstat (limited to 'beku_test.go')
-rw-r--r--beku_test.go7
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