The evaluator test suite covers every built-in macro, the Rhai and Python
scripting back-ends, the output-sink tracing infrastructure, and the public
eval API. Tests live under src/evaluator/tests/ and are gated by
#[cfg(test)] in mod.rs.
Focused test pages
-
tests-macros.adoc —
%def,%set, variable substitution, test helpers -
tests-control.adoc —
%if,%equal,%include,%import,%export,%eval,%here -
tests-case.adoc — case conversion module + case-modifier builtins
-
tests-scripting.adoc — Rhai (
%rhaidef,%rhaiset, …) and Python (%pydef,%pyset, …) scripting -
tests-output.adoc — output sinks, eval API, macro API, SKILL.md examples
Test organisation
| Module | Coverage |
|---|---|
|
Shared helpers: |
|
|
|
|
|
Variable substitution through |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Exact examples from |
File structure
// <<@file weaveback-macro/src/evaluator/tests/mod.rs>>=
// <<tests mod>>
// @
// <<@file weaveback-macro/src/evaluator/tests/test_utils.rs>>=
// <<test utils>>
// @
// <<@file weaveback-macro/src/evaluator/tests/test_macros.rs>>=
// <<test macros>>
// @
// <<@file weaveback-macro/src/evaluator/tests/test_def.rs>>=
// <<test def>>
// @
// <<@file weaveback-macro/src/evaluator/tests/test_var.rs>>=
// <<test var>>
// @
// <<@file weaveback-macro/src/evaluator/tests/test_set.rs>>=
// <<test set>>
// @
// <<@file weaveback-macro/src/evaluator/tests/test_if.rs>>=
// <<test if>>
// @
// <<@file weaveback-macro/src/evaluator/tests/test_equal.rs>>=
// <<test equal>>
// @
// <<@file weaveback-macro/src/evaluator/tests/test_include.rs>>=
// <<test include>>
// @
// <<@file weaveback-macro/src/evaluator/tests/test_import.rs>>=
// <<test import>>
// @
// <<@file weaveback-macro/src/evaluator/tests/test_export.rs>>=
// <<test export>>
// @
// <<@file weaveback-macro/src/evaluator/tests/test_eval.rs>>=
// <<test eval>>
// @
// <<@file weaveback-macro/src/evaluator/tests/test_here.rs>>=
// <<test here>>
// @
// <<@file weaveback-macro/src/evaluator/tests/test_case_conversion.rs>>=
// <<test case conversion>>
// @
// <<@file weaveback-macro/src/evaluator/tests/test_case_modifiers.rs>>=
// <<test case modifiers>>
// @
// <<@file weaveback-macro/src/evaluator/tests/test_rhaidef.rs>>=
// <<test rhaidef>>
// @
// <<@file weaveback-macro/src/evaluator/tests/test_pydef.rs>>=
// <<test pydef>>
// @
// <<@file weaveback-macro/src/evaluator/tests/test_output.rs>>=
// <<test output>>
// @
// <<@file weaveback-macro/src/evaluator/tests/test_eval_api.rs>>=
// <<test eval api>>
// @
// <<@file weaveback-macro/src/evaluator/tests/test_macro_api.rs>>=
// <<test macro api>>
// @
// <<@file weaveback-macro/src/evaluator/tests/test_skill_examples.rs>>=
// <<test skill examples>>
// @
tests/mod.rs — module registry
// <<tests mod>>=
// crates/weaveback-macro/src/evaluator/tests/mod.rs
// @