mirror of
https://github.com/microsoft/HybridRow.git
synced 2026-10-18 15:14:22 +01:00
RowReaderTest against RootSegment.json/RootSegment.hybridrow succeeds
This commit is contained in:
1 parent
c5f95ef8a8
commit
8de175cdcb
2 files changed
+9
-5
No files matched your search
+9
-5
@@ -66,15 +66,19 @@ public class RowReaderTest {
|
||||
fail(lenientFormat("failed to open %s due to %s", this.dataFile, error));
|
||||
}
|
||||
|
||||
LayoutResolver resolver = new LayoutResolverNamespace(this.namespace);
|
||||
RowBuffer buffer = new RowBuffer(data, HybridRowVersion.V1, resolver);
|
||||
RowReader reader = new RowReader(buffer);
|
||||
final LayoutResolver resolver = new LayoutResolverNamespace(this.namespace);
|
||||
final RowBuffer buffer = new RowBuffer(data, HybridRowVersion.V1, resolver);
|
||||
final RowReader reader = new RowReader(buffer);
|
||||
|
||||
final Result result;
|
||||
|
||||
try {
|
||||
visitFields(reader, 0);
|
||||
result = visitFields(reader, 0);
|
||||
} catch (IllegalStateException error) {
|
||||
fail(lenientFormat("row reader on %s failed due to %s", this.dataFile, error));
|
||||
throw new AssertionError(lenientFormat("row reader on %s failed due to %s", this.dataFile, error));
|
||||
}
|
||||
|
||||
assertEquals(result, Result.SUCCESS);
|
||||
}
|
||||
|
||||
private static Result visitFields(RowReader reader, int level) {
|
||||
|
||||
BIN
Binary file not shown.
Reference in new issue
Block a user