diff options
Diffstat (limited to 'test/import/ImportSupport.mc')
| -rw-r--r-- | test/import/ImportSupport.mc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/import/ImportSupport.mc b/test/import/ImportSupport.mc index ba891a7..1c84ec3 100644 --- a/test/import/ImportSupport.mc +++ b/test/import/ImportSupport.mc @@ -36,6 +36,15 @@ module AegisFixtures { } // Runs the reader to the end (or a non-running status). + // Every parsed item, unpacked. + function items(reader as AegisReader) as Array<ImportItem> { + var out = [] as Array<ImportItem>; + for (var i = 0; i < reader.items.size(); i++) { + out.add(reader.item(i)); + } + return out; + } + function read(text as String) as AegisReader { var reader = new AegisReader(Bytes.fromUtf8(text)); for (var i = 0; i < 10000; i++) { |
