aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart-test-harness/src/lib.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-04 10:35:58 +0900
committernsfisis <nsfisis@gmail.com>2026-05-04 10:35:58 +0900
commit1427c101f98c72e551fcc72671ab3cde0991bb6d (patch)
treeb83fe05cc22a38813243d86890fde34721b7985a /crates/mozart-test-harness/src/lib.rs
parentbc72b70daea7db03456508540f96ab6f019ef5e3 (diff)
downloadphp-mozart-1427c101f98c72e551fcc72671ab3cde0991bb6d.tar.gz
php-mozart-1427c101f98c72e551fcc72671ab3cde0991bb6d.tar.zst
php-mozart-1427c101f98c72e551fcc72671ab3cde0991bb6d.zip
test(resolver): scaffold PoolBuilder fixture suite from Composer
Port the 31 .test fixtures under composer/tests/Composer/Test/DependencyResolver/Fixtures/poolbuilder/ as #[ignore]'d cases in mozart-registry/tests/poolbuilder.rs. Each fixture is parsed eagerly so format-level regressions surface immediately, while the runner itself is unimplemented\!() — removing #[ignore] from a case will force the missing pool-build entry point into existence rather than silently mis-run. Generalize mozart-test-harness's split_sections to take a per-format valid-section list and add a poolbuilder parser alongside the installer one.
Diffstat (limited to 'crates/mozart-test-harness/src/lib.rs')
-rw-r--r--crates/mozart-test-harness/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/mozart-test-harness/src/lib.rs b/crates/mozart-test-harness/src/lib.rs
index f8fa2b3..ea125cc 100644
--- a/crates/mozart-test-harness/src/lib.rs
+++ b/crates/mozart-test-harness/src/lib.rs
@@ -6,7 +6,11 @@
//! runner; actual `.test` fixtures and tests live elsewhere.
mod parser;
+mod pool_builder_parser;
mod runner;
pub use parser::{ParsedTest, parse_test_file, parse_test_str};
+pub use pool_builder_parser::{
+ ParsedPoolBuilderTest, parse_pool_builder_test_file, parse_pool_builder_test_str,
+};
pub use runner::{RunResult, run_test};