(t *testing.T)
| 92 | } |
| 93 | |
| 94 | func TestListStructure_RPush(t *testing.T) { |
| 95 | list, _ := initList() |
| 96 | defer list.db.Clean() |
| 97 | |
| 98 | // Test RPush function when the key exists |
| 99 | listErr = list.RPush(string(randkv.GetTestKey(1)), randkv.RandomValue(100), 0) |
| 100 | assert.Nil(t, listErr) |
| 101 | |
| 102 | // Test RPush function when the key does not exist |
| 103 | listErr = list.RPush(string(randkv.GetTestKey(2)), randkv.RandomValue(100), 0) |
| 104 | assert.Nil(t, listErr) |
| 105 | } |
| 106 | |
| 107 | func TestListStructure_RPushs(t *testing.T) { |
| 108 | list, _ := initList() |
nothing calls this directly
no test coverage detected