(t *testing.T)
| 132 | } |
| 133 | |
| 134 | func TestTx_CommittedStatus(t *testing.T) { |
| 135 | |
| 136 | withRAMIdxDB(t, func(t *testing.T, db *DB) { |
| 137 | |
| 138 | bucket := "bucket_committed_status" |
| 139 | |
| 140 | { // setup data |
| 141 | txCreateBucket(t, db, DataStructureBTree, bucket, nil) |
| 142 | tx, err := db.Begin(true) |
| 143 | assert.NoError(t, err) |
| 144 | |
| 145 | err = tx.Put(bucket, []byte("key1"), []byte("value1"), 0) |
| 146 | assert.NoError(t, err) |
| 147 | |
| 148 | err = tx.Put(bucket, []byte("key2"), []byte("value2"), 0) |
| 149 | assert.NoError(t, err) |
| 150 | |
| 151 | err = tx.Commit() |
| 152 | assert.NoError(t, err) |
| 153 | } |
| 154 | }) |
| 155 | } |
| 156 | |
| 157 | func TestTx_PutWithTimestamp(t *testing.T) { |
| 158 | withDefaultDB(t, func(t *testing.T, db *DB) { |
nothing calls this directly
no test coverage detected