(t *testing.T)
| 105 | } |
| 106 | |
| 107 | func TestListStructure_RPushs(t *testing.T) { |
| 108 | list, _ := initList() |
| 109 | defer list.db.Clean() |
| 110 | |
| 111 | // Test RPushs function when the key exists |
| 112 | listErr = list.RPushs(string(randkv.GetTestKey(1)), 0, randkv.RandomValue(100), randkv.RandomValue(100)) |
| 113 | assert.Nil(t, listErr) |
| 114 | |
| 115 | // Test RPushs function when the key does not exist |
| 116 | listErr = list.RPushs(string(randkv.GetTestKey(2)), 0, randkv.RandomValue(100), randkv.RandomValue(100)) |
| 117 | assert.Nil(t, listErr) |
| 118 | } |
| 119 | |
| 120 | func TestListStructure_LPop(t *testing.T) { |
| 121 | list, _ := initList() |
nothing calls this directly
no test coverage detected