(t *testing.T)
| 79 | } |
| 80 | |
| 81 | func TestListStructure_LPushs(t *testing.T) { |
| 82 | list, _ := initList() |
| 83 | defer list.db.Clean() |
| 84 | |
| 85 | // Test LPushs function when the key exists |
| 86 | listErr = list.LPushs(string(randkv.GetTestKey(1)), 0, randkv.RandomValue(100), randkv.RandomValue(100)) |
| 87 | assert.Nil(t, listErr) |
| 88 | |
| 89 | // Test LPushs function when the key does not exist |
| 90 | listErr = list.LPushs(string(randkv.GetTestKey(2)), 0, randkv.RandomValue(100), randkv.RandomValue(100)) |
| 91 | assert.Nil(t, listErr) |
| 92 | } |
| 93 | |
| 94 | func TestListStructure_RPush(t *testing.T) { |
| 95 | list, _ := initList() |
nothing calls this directly
no test coverage detected