(t *testing.T)
| 51 | } |
| 52 | |
| 53 | func TestListStructure_Size(t *testing.T) { |
| 54 | list, _ := initList() |
| 55 | defer list.db.Clean() |
| 56 | |
| 57 | err = list.LPush("2", "123123", 0) |
| 58 | assert.Nil(t, err) |
| 59 | |
| 60 | err = list.LPush("2", "1233", 0) |
| 61 | assert.Nil(t, err) |
| 62 | |
| 63 | value, err := list.Size("2") |
| 64 | assert.Nil(t, err) |
| 65 | assert.Equal(t, value, "10B") |
| 66 | } |
| 67 | |
| 68 | func TestListStructure_LPush(t *testing.T) { |
| 69 | list, _ := initList() |