addRawArchive method
Makes getArchive return tarBytes verbatim for path, instead of
wrapping single-file content the way it normally does.
For a test that needs to see what ContainerLease.getFile does with
an archive holding more than one entry — the shape Docker sends back
for a directory — which a single seeded file can never produce on its
own.
Implementation
void addRawArchive(String id, String path, List<int> tarBytes) {
_require(id).rawArchives[p.posix.normalize(path)] = Uint8List.fromList(
tarBytes,
);
}