1pub mod assay_suite;
4pub mod batch;
5pub mod caps;
6pub mod claims;
7pub mod compat;
8pub mod discover;
9pub mod eval;
10pub mod force;
11pub mod laws;
12pub mod outcome;
13pub mod pool;
14pub mod prop;
15pub mod report;
16pub mod run;
17pub mod schema;
18pub mod simple_eval;
19pub mod snapshot;
20pub mod timeout;
21pub mod verdict;
22
23pub use caps::{
24 AssayEnv, ClockKey, FakeStore, FsSnapshotStoreLive, LiveClockLive, MockNixEval, NixEvaluatorKey,
25 NixWorkerPoolKey, ProcessNixEvalLive, SemaphoreWorkerPoolLive, SnapshotStoreKey, live_providers,
26 require_store,
27};
28pub use claims::{Claim, build_module_eval_expr, interpret_claim};
29pub use compat::{CompatCase, CompatSuite, load_compat_suite};
30pub use discover::{SuiteFile, discover_suites};
31pub use eval::{EvalBackend, EvalResult, NixEval, ProcessNixEval};
32pub use id_effect::Exit;
33pub use laws::{run_builtin_laws, run_law_by_name};
34pub use outcome::{AssayOutcome, run_case};
35pub use pool::{MockWorkerPool, NixWorkerPool, PoolStats, SemaphoreWorkerPool};
36pub use report::{ReportFormat, report_outcomes_stdout};
37pub use run::{RunOptions, RunSummary, SuiteReport, run_discovered, run_suite, summarize};
38pub use schema::{decode_claim_json, decode_suite_cases, encode_claim_json};
39pub use snapshot::SnapshotStore;
40pub use verdict::{CaseVerdict, InfraError, exit_to_outcome, outcome_to_exit};
41
42#[cfg(test)]
44mod coverage_tests;
45
46#[cfg(test)]
47mod branch_coverage_tests;
48
49#[cfg(test)]
50mod id_effect_dep_smoke {
51 use id_effect::Exit;
52
53 #[test]
54 fn id_effect_exit_is_linked() {
55 let exit: Exit<(), ()> = Exit::succeed(());
56 assert!(matches!(exit, Exit::Success(())));
57 }
58
59 #[cfg(feature = "cli-exit")]
60 #[test]
61 fn id_effect_cli_exit_code_linked() {
62 use id_effect_cli::exit_code_for_exit;
63 use std::process::ExitCode;
64 let code = exit_code_for_exit(Exit::<(), ()>::succeed(()));
65 assert_eq!(code, ExitCode::SUCCESS);
66 }
67}