tree: b25c8cd7e8c10d775a194d17fecaf5fddf12d20f [path history] [tgz]
  1. src/
  2. BUILD.gn
  3. README.md
src/sys/pkg/testing/mock-resolver/README.md

A test helper that creates a mock resolver backed by a tempdir serving package directories, without spinning up a pkgfs instance.

Usage

BUILD.gn

Nothing special, other than including this crate:

  deps = [
    "//src/sys/pkg/testing/mock-resolver",
  ]

Component Manifest

In the component manifest for the tests that utilize this crate, add the isolated-temp capability to allow this crate to create tempdirs.

{
    "sandbox": {
        "features": [
            "isolated-temp"
        ]
    }
}