Skip to content
Unverified: This page has not yet been anchored to automated code tests.

vox-plugin-test-harness API Reference (generated)

Crate: vox-plugin-test-harness · Version: 0.6.0 · Target: Library (lib.rs)

Shared test utilities for Vox plugin authors: manifest fixture builders and temp plugin directory helpers.

Shared test utilities for Vox plugin authors:

  • [manifest_builder] — fluent builders for Plugin.toml TOML strings
  • [plugin_dir] — [PluginDir] temp-directory helper
use vox_plugin_test_harness::manifest_builder::CodeManifestBuilder;
use vox_plugin_test_harness::plugin_dir::{PluginDir, assert_manifest_parses};
let toml = CodeManifestBuilder::new("test-plugin")
.extension_point("MlBackend")
// vox-arch-check: allow dynlib-ext
.artifact("linux-x86_64", "libtest.so")
.build();
let dir = PluginDir::from_toml(&toml).expect("valid toml");
let manifest = dir.parse_manifest().expect("round-trip");
assert_eq!(manifest.plugin.id, "test-plugin");
DependencyKind
vox-plugin-typesNormal
ModuleDescription
manifest_builder—
plugin_dir—