(t *testing.T)
| 66 | } |
| 67 | |
| 68 | func TestListStructure_LPush(t *testing.T) { |
| 69 | list, _ := initList() |
| 70 | defer list.db.Clean() |
| 71 | |
| 72 | // Test LPush function when the key exists |
| 73 | listErr = list.LPush("key", "w", 10) |
| 74 | assert.Nil(t, listErr) |
| 75 | |
| 76 | //// Test LPush function when the key does not exist |
| 77 | //listErr = list.LPush(string(randkv.GetTestKey(2)), randkv.RandomValue(100)) |
| 78 | //assert.Nil(t, listErr) |
| 79 | } |
| 80 | |
| 81 | func TestListStructure_LPushs(t *testing.T) { |
| 82 | list, _ := initList() |