diff --git a/.codecov.yaml b/.codecov.yaml index 2c2196ab..70473515 100644 --- a/.codecov.yaml +++ b/.codecov.yaml @@ -1,3 +1,6 @@ +ignore: + - "rust/src/lib.rs" # codecov seriously screws this one up, and thinks it has >1k lines despite having ~60 + component_management: default_rules: # default rules that will be inherited by all components statuses: diff --git a/rust/src/lib.rs b/rust/src/lib.rs index b9b5dfe1..673d36a8 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -27,7 +27,7 @@ pub use crate::include::utils::{Answer,get_answer}; #[cfg(any(target_arch="wasm32", target_arch="wasm64"))] #[wasm_bindgen] pub fn run_problem(n: usize) -> JsValue { - let Some((_, problem_function, _)) = get_problem(n) else { panic!() }; + let Some((_, problem_function, _)) = get_problem(n) else { return JsValue::UNDEFINED }; let answer = problem_function(); return match answer { Answer::String(e) => JsValue::from_str(&e),