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

A test helper that creates a mock verifier service which responds based on a caller-provided function.

Usage

BUILD.gn

Nothing special, other than including this crate:

  deps = [
    "//src/sys/pkg/testing/mock-verifier:lib",
  ]

In tests

See the tests in src/lib.rs for examples of using this crate in various scenarios, including making verify calls succeed, fail, or act on external data.