field_lib

Cross-platform Rust runtime for Radroots iOS and Android apps
git clone https://radroots.dev/git/field_lib.git
Log | Files | Refs | README | LICENSE

lib.rs (401B)


      1 radroots_field_core::uniffi_reexport_scaffolding!();
      2 
      3 pub fn coverage_branch_probe(input: bool) -> &'static str {
      4     if input { "ffi" } else { "ffi" }
      5 }
      6 
      7 #[cfg(test)]
      8 mod tests {
      9     use super::coverage_branch_probe;
     10 
     11     #[test]
     12     fn coverage_branch_probe_hits_both_paths() {
     13         assert_eq!(coverage_branch_probe(true), "ffi");
     14         assert_eq!(coverage_branch_probe(false), "ffi");
     15     }
     16 }