add test case

This commit is contained in:
yihaoDeng 2024-02-27 05:51:32 +00:00
parent 8d36445bb5
commit 6b6f5aa5d1
1 changed files with 12 additions and 1 deletions

View File

@ -72,7 +72,18 @@ void backendOpen() {
SWinKey key = {.groupId = (uint64_t)(0), .ts = ts};
streamStateDel_rocksdb(p, &key);
streamStateClear_rocksdb(p);
for (int i = 0; i < size; i++) {
int64_t ts = tsArray[i];
SWinKey key = {.groupId = (uint64_t)(i), .ts = ts};
const char *val = "value data";
int32_t len = 0;
char *newVal = NULL;
int32_t code = streamStateGet_rocksdb(p, &key, (void **)&newVal, &len);
ASSERT(code != 0);
}
tsArray.clear();
// read
// iterator