-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: add TestKeySchema_RandomKeys
Add a randomized test that constructs random keys, writes them to a Pebble columnar block, iterates over the block and asserts that the keys are semantically equal to the original generated keys. Epic: none Release note: none
- Loading branch information
Showing
3 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,3 +147,25 @@ MaterializeUserKey(-1, 3) = hex:6d6f6f0000000000b2d05e00000000010d | |
MaterializeUserKey(3, 2) = hex:666f6f0000000000b2d05e00000000010d | ||
MaterializeUserKey(2, 0) = hex:6261720000000000b2d05e00000000010d | ||
MaterializeUserKey(0, 1) = hex:6261780000000000b2d05e00000000010d | ||
|
||
define-block | ||
[email protected],0 | ||
[email protected],2 | ||
[email protected],1 | ||
[email protected],0 | ||
---- | ||
Parse("[email protected],0") = hex:6d6f6f0000000000b2d05e0109 | ||
Parse("[email protected],2") = hex:6d6f6f0000000000b2d05e00000000020d | ||
Parse("[email protected],1") = hex:6d6f6f0000000000b2d05e00000000010d | ||
Parse("[email protected],0") = hex:6d6f6f0000000000b2d05e0009 | ||
|
||
materialize-user-key | ||
0 | ||
1 | ||
2 | ||
3 | ||
---- | ||
MaterializeUserKey(-1, 0) = hex:6d6f6f0000000000b2d05e0109 | ||
MaterializeUserKey(0, 1) = hex:6d6f6f0000000000b2d05e00000000020d | ||
MaterializeUserKey(1, 2) = hex:6d6f6f0000000000b2d05e00000000010d | ||
MaterializeUserKey(2, 3) = hex:6d6f6f0000000000b2d05e0009 |