-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db: convert TestTracing to datadriven
Rewrite this test to use `datadriven`. This will make it much easier to update and extend.
- Loading branch information
1 parent
89e5644
commit 0e23292
Showing
2 changed files
with
111 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
build | ||
set hello foo | ||
---- | ||
|
||
get | ||
hello | ||
---- | ||
reading footer of 53 bytes took 5ms | ||
reading block of 37 bytes took 5ms (<redacted>) | ||
reading block of 419 bytes took 5ms (<redacted>) | ||
reading block of 27 bytes took 5ms (<redacted>) | ||
reading block of 32 bytes took 5ms (<redacted>) | ||
hello:foo | ||
|
||
# If we disable background tracing, we should see no traces with Get. | ||
get disable-background-tracing | ||
hello | ||
---- | ||
hello:foo | ||
|
||
iter | ||
seek-ge hello | ||
---- | ||
reading block of 27 bytes took 5ms (<redacted>) | ||
reading block of 32 bytes took 5ms (<redacted>) | ||
hello: (foo, .) | ||
|
||
snapshot-iter | ||
seek-ge hello | ||
---- | ||
reading block of 27 bytes took 5ms (<redacted>) | ||
reading block of 32 bytes took 5ms (<redacted>) | ||
hello: (foo, .) | ||
|
||
indexed-batch-iter | ||
seek-ge hello | ||
---- | ||
reading block of 27 bytes took 5ms (<redacted>) | ||
reading block of 32 bytes took 5ms (<redacted>) | ||
hello: (foo, .) |