add nil testing for memory.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-06-30 13:47:10 +08:00
parent c14eda6d3d
commit 84c13e6d42
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@ func TestMemoryEngine(t *testing.T) {
memory := New()
assert.Nil(t, memory.Init())
memory.AddTotalCount(1)
val = memory.GetTotalCount()
assert.Equal(t, int64(1), val)