addFile method

void addFile(
  1. String id,
  2. String path,
  3. List<int> content
)

Seeds id with a file at path, so a test can exercise getArchive (via ContainerLease.getFile) without a prior putArchive.

Implementation

void addFile(String id, String path, List<int> content) {
  _require(id).files[p.posix.normalize(path)] = content;
}