Skip to main content

probador/handlers/
mod.rs

1//! Command handlers - extracted from main.rs for testability
2//!
3//! Each handler module contains:
4//! - The execution logic for a CLI command
5//! - Pure helper functions
6//! - Comprehensive tests
7
8pub mod animation;
9pub mod audio;
10pub mod av_sync;
11pub mod build;
12pub mod comply;
13pub mod config;
14pub mod coverage;
15pub mod init;
16#[cfg(feature = "llm")]
17pub mod llm;
18pub mod report;
19pub mod serve;
20pub mod video;
21
22// Re-export handlers for convenient access
23pub use comply::{
24    check_c001_code_execution, check_c002_console_errors, check_c003_custom_elements,
25    check_c004_threading_modes, check_c005_low_memory, check_c006_headers, check_c007_replay_hash,
26    check_c008_cache, check_c009_wasm_size, check_c010_panic_paths, check_makefile_cross_origin,
27    check_probar_cross_origin_config, run_compliance_checks, ComplianceResult,
28};
29pub use config::execute_config;
30pub use coverage::{
31    calculate_coverage, create_sample_coverage_data, execute_coverage, generate_coverage_report,
32    is_gap_cell, load_coverage_from_json,
33};
34pub use init::{execute_init, generate_probar_config, is_valid_init_path};
35pub use report::{
36    execute_report, generate_cobertura_report, generate_html_report, generate_json_report,
37    generate_junit_report, generate_lcov_report, open_in_browser,
38};