710b60bb160814f4519b2b797127e6c37fd38b18
This commit extracts the logic for mapping audio analysis results into the `RecordingMeta` fields into a new, pure function `analysis_to_meta_fields`. This improves testability by separating the core mapping logic from logging and other side effects. The previous implementation directly handled logging and conditional logic within the `run` function. The new function encapsulates these mapping rules, including handling finite values, silent audio, and error propagation. The caller, `run`, is now responsible for logging any analysis failures before calling the helper. Unit tests have been added to verify the behavior of `analysis_to_meta_fields` in various scenarios.
Description
No description provided
Languages
Rust
74%
Kotlin
12.7%
HTML
4.9%
Python
4.1%
Shell
3.8%
Other
0.5%