-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sstable: extract formatWriterMetadata test helper
Extract logic to format the WriterMetadata in sstable unit tests into a common test helper.
- Loading branch information
Showing
6 changed files
with
72 additions
and
117 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 |
---|---|---|
|
@@ -13,10 +13,8 @@ a.SET.1:10 | |
b.SET.2:20 | ||
c.SET.3:30 | ||
---- | ||
point: [a#1,SET,c#3,SET] | ||
rangedel: [#0,DEL,#0,DEL] | ||
rangekey: [#0,DEL,#0,DEL] | ||
seqnums: [1,3] | ||
point: [a#1,SET-c#3,SET] | ||
seqnums: [1-3] | ||
|
||
# collectors returns the collectors used when writing the table, keyed by the | ||
# shortID of the collector. | ||
|
@@ -43,10 +41,8 @@ a.SET.1:17 | |
b.SET.2:29 | ||
c.SET.3:38 | ||
---- | ||
point: [a#1,SET,c#3,SET] | ||
rangedel: [#0,DEL,#0,DEL] | ||
rangekey: [#0,DEL,#0,DEL] | ||
seqnums: [1,3] | ||
point: [a#1,SET-c#3,SET] | ||
seqnums: [1-3] | ||
|
||
collectors | ||
---- | ||
|
@@ -77,10 +73,8 @@ f.SET.6:54 | |
g.SET.7:63 | ||
h.SET.8:38 | ||
---- | ||
point: [a#1,SET,h#8,SET] | ||
rangedel: [#0,DEL,#0,DEL] | ||
rangekey: [#0,DEL,#0,DEL] | ||
seqnums: [1,8] | ||
point: [a#1,SET-h#8,SET] | ||
seqnums: [1-8] | ||
|
||
collectors | ||
---- | ||
|
@@ -118,10 +112,9 @@ rangekey: d@10-e@15:{(#4,RANGEKEYSET,@20,foo)} | |
rangekey: e@15-f@20:{(#5,RANGEKEYUNSET,@25)} | ||
rangekey: f@20-z@25:{(#6,RANGEKEYDEL)} | ||
---- | ||
point: [a@5#1,SET,c@15#3,SET] | ||
rangedel: [#0,DEL,#0,DEL] | ||
rangekey: [d@10#4,RANGEKEYSET,z@25#inf,RANGEKEYDEL] | ||
seqnums: [1,6] | ||
point: [a@5#1,SET-c@15#3,SET] | ||
rangekey: [d@10#4,RANGEKEYSET-z@25#inf,RANGEKEYDEL] | ||
seqnums: [1-6] | ||
|
||
collectors | ||
---- | ||
|
@@ -146,10 +139,9 @@ rangekey: d@10-e@15:{(#4,RANGEKEYSET,@20,foo)} | |
rangekey: e@15-f@20:{(#5,RANGEKEYUNSET,@25)} | ||
rangekey: f@20-z@25:{(#6,RANGEKEYDEL)} | ||
---- | ||
point: [a@5#1,SET,c@15#3,SET] | ||
rangedel: [#0,DEL,#0,DEL] | ||
rangekey: [d@10#4,RANGEKEYSET,z@25#inf,RANGEKEYDEL] | ||
seqnums: [1,6] | ||
point: [a@5#1,SET-c@15#3,SET] | ||
rangekey: [d@10#4,RANGEKEYSET-z@25#inf,RANGEKEYDEL] | ||
seqnums: [1-6] | ||
|
||
collectors | ||
---- | ||
|
@@ -174,10 +166,9 @@ rangekey: d@10-e@15:{(#4,RANGEKEYSET,@20,foo)} | |
rangekey: e@15-f@20:{(#5,RANGEKEYUNSET,@25)} | ||
rangekey: f@20-z@25:{(#6,RANGEKEYDEL)} | ||
---- | ||
point: [a@5#1,SET,c@15#3,SET] | ||
rangedel: [#0,DEL,#0,DEL] | ||
rangekey: [d@10#4,RANGEKEYSET,z@25#inf,RANGEKEYDEL] | ||
seqnums: [1,6] | ||
point: [a@5#1,SET-c@15#3,SET] | ||
rangekey: [d@10#4,RANGEKEYSET-z@25#inf,RANGEKEYDEL] | ||
seqnums: [1-6] | ||
|
||
collectors | ||
---- | ||
|
@@ -203,10 +194,9 @@ rangekey: d@10-e@15:{(#4,RANGEKEYSET,@20,foo)} | |
rangekey: e@15-f@20:{(#5,RANGEKEYUNSET,@25)} | ||
rangekey: f@20-z@25:{(#6,RANGEKEYDEL)} | ||
---- | ||
point: [a@5#1,SET,c@15#3,SET] | ||
rangedel: [#0,DEL,#0,DEL] | ||
rangekey: [d@10#4,RANGEKEYSET,z@25#inf,RANGEKEYDEL] | ||
seqnums: [1,6] | ||
point: [a@5#1,SET-c@15#3,SET] | ||
rangekey: [d@10#4,RANGEKEYSET-z@25#inf,RANGEKEYDEL] | ||
seqnums: [1-6] | ||
|
||
collectors | ||
---- | ||
|
@@ -300,10 +290,8 @@ [email protected]:bax | |
[email protected]:box | ||
[email protected]:mop | ||
---- | ||
point: [a@1#1,SET,f@5#3,SET] | ||
rangedel: [#0,DEL,#0,DEL] | ||
rangekey: [#0,DEL,#0,DEL] | ||
seqnums: [1,5] | ||
point: [a@1#1,SET-f@5#3,SET] | ||
seqnums: [1-5] | ||
|
||
collectors | ||
---- | ||
|
@@ -356,10 +344,8 @@ [email protected]:bax | |
[email protected]:box | ||
[email protected]:mop | ||
---- | ||
point: [a@1#1,SET,f@5#3,SET] | ||
rangedel: [#0,DEL,#0,DEL] | ||
rangekey: [#0,DEL,#0,DEL] | ||
seqnums: [1,5] | ||
point: [a@1#1,SET-f@5#3,SET] | ||
seqnums: [1-5] | ||
|
||
collectors | ||
---- | ||
|
@@ -406,10 +392,8 @@ [email protected]:bax | |
[email protected]:box | ||
[email protected]:mop | ||
---- | ||
point: [a@1#1,SET,f@5#3,SET] | ||
rangedel: [#0,DEL,#0,DEL] | ||
rangekey: [#0,DEL,#0,DEL] | ||
seqnums: [1,5] | ||
point: [a@1#1,SET-f@5#3,SET] | ||
seqnums: [1-5] | ||
|
||
block-props | ||
---- | ||
|
@@ -604,10 +588,8 @@ [email protected]:bax | |
[email protected]:box | ||
[email protected]:mop | ||
---- | ||
point: [a@1#1,SET,f@5#3,SET] | ||
rangedel: [#0,DEL,#0,DEL] | ||
rangekey: [#0,DEL,#0,DEL] | ||
seqnums: [1,5] | ||
point: [a@1#1,SET-f@5#3,SET] | ||
seqnums: [1-5] | ||
|
||
block-props | ||
---- | ||
|
@@ -645,10 +627,8 @@ [email protected]:bax | |
[email protected]:box | ||
[email protected]:mop | ||
---- | ||
point: [a@1#1,SET,f@5#3,SET] | ||
rangedel: [#0,DEL,#0,DEL] | ||
rangekey: [#0,DEL,#0,DEL] | ||
seqnums: [1,5] | ||
point: [a@1#1,SET-f@5#3,SET] | ||
seqnums: [1-5] | ||
|
||
block-props | ||
---- | ||
|
@@ -678,10 +658,8 @@ [email protected]:foo | |
[email protected]:bar | ||
[email protected]:baz | ||
---- | ||
point: [a@5#1,SET,c@7#3,SET] | ||
rangedel: [#0,DEL,#0,DEL] | ||
rangekey: [#0,DEL,#0,DEL] | ||
seqnums: [1,3] | ||
point: [a@5#1,SET-c@7#3,SET] | ||
seqnums: [1-3] | ||
|
||
collectors | ||
---- | ||
|
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 |
---|---|---|
|
@@ -8,10 +8,8 @@ [email protected]:54 | |
[email protected]:63 | ||
[email protected]:38 | ||
---- | ||
point: [a@5#1,SET,h@3#8,SET] | ||
rangedel: [#0,DEL,#0,DEL] | ||
rangekey: [#0,DEL,#0,DEL] | ||
seqnums: [1,8] | ||
point: [a@5#1,SET-h@3#8,SET] | ||
seqnums: [1-8] | ||
|
||
collectors | ||
---- | ||
|
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