(t *testing.T)
| 407 | } |
| 408 | |
| 409 | func TestTx_LSize(t *testing.T) { |
| 410 | bucket := "bucket" |
| 411 | |
| 412 | // Calling LSize on a non-existent list |
| 413 | runNutsDBTest(t, nil, func(t *testing.T, db *DB) { |
| 414 | txCreateBucket(t, db, DataStructureList, bucket, nil) |
| 415 | txLSize(t, db, bucket, testutils.GetTestBytes(0), 0, ErrListNotFound) |
| 416 | }) |
| 417 | |
| 418 | // Calling LSize after adding some values |
| 419 | runNutsDBTest(t, nil, func(t *testing.T, db *DB) { |
| 420 | txCreateBucket(t, db, DataStructureList, bucket, nil) |
| 421 | pushDataByStartEnd(t, db, bucket, 0, 0, 2, false) |
| 422 | txLSize(t, db, bucket, testutils.GetTestBytes(0), 3, nil) |
| 423 | }) |
| 424 | } |
| 425 | |
| 426 | func TestTx_LRemByIndex(t *testing.T) { |
| 427 | bucket := "bucket" |
nothing calls this directly
no test coverage detected