#![cfg(any(
not(any(
feature = "parser_tests",
feature = "analyzer_tests",
feature = "codegen_tests",
feature = "interpreter_tests",
feature = "conformance_tests",
feature = "integration_tests",
)),
feature = "analyzer_tests",
))]
#[cfg(feature = "cli")]
#[test]
fn test_run_tests_is_exported() {
let temp = tempfile::tempdir().unwrap();
let result = windjammer::run_tests(Some(temp.path()), None, false, true, false);
assert!(
result.is_ok(),
"run_tests should succeed for empty dir: {:?}",
result
);
}
#[cfg(feature = "cli")]
#[test]
fn test_generate_mod_file_is_exported() {
let temp = tempfile::tempdir().unwrap();
let result = windjammer::generate_mod_file(temp.path());
assert!(result.is_ok(), "generate_mod_file should be callable");
}
#[cfg(feature = "cli")]
#[test]
fn test_strip_main_functions_is_exported() {
let temp = tempfile::tempdir().unwrap();
let result = windjammer::strip_main_functions(temp.path());
assert!(result.is_ok(), "strip_main_functions should be callable");
}