update tests

This commit is contained in:
Fenny
2020-11-05 05:57:14 +01:00
parent 420f4834d2
commit 79f1f1609e
8 changed files with 91 additions and 1 deletions

View File

@@ -21,6 +21,19 @@ func Test_Memcache_Set(t *testing.T) {
utils.AssertEqual(t, nil, err)
}
func Test_Memcache_Set_Override(t *testing.T) {
var (
key = "john"
val = []byte("doe")
)
err := testStore.Set(key, val, 0)
utils.AssertEqual(t, nil, err)
err := testStore.Set(key, val, 0)
utils.AssertEqual(t, nil, err)
}
func Test_Memcache_Get(t *testing.T) {
var (
key = "john"