From e9907ad666f9e965852995e8f8008d33ddc1da7c Mon Sep 17 00:00:00 2001 From: thinkerou Date: Thu, 9 Aug 2018 13:19:19 +0800 Subject: [PATCH] add test case for function --- recovery_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/recovery_test.go b/recovery_test.go index c91dc9ec..fa065b13 100644 --- a/recovery_test.go +++ b/recovery_test.go @@ -56,3 +56,8 @@ func TestSource(t *testing.T) { bs = source(in, 1) assert.Equal(t, []byte("Hello world."), bs) } + +func TestFunction(t *testing.T) { + bs := function(1) + assert.Equal(t, []byte("???"), bs) +}