forge
Explore
Log in

Don't you dare go Hollow

Ignore manifest audio sentinel

Browse files at this commit

7192e035ea5f1394ca40e22b50a166705953058fAhmet Kaan GümüşParent: 52fc2fc
  • test
    • ignore manifest audio sentinel
Show full message
test(probe): ignore manifest audio sentinel
crates/ec-probe/tests/library.rsmodified+5 -1
@@ -23,10 +23,14 @@ fn manifest() -> Vec<(PathBuf, String, String, f64)> {
2323 .filter_map(|line| {
2424 let f: Vec<&str> = line.split('\t').collect();
2525 let path = PathBuf::from(f.first()?);
26+ let acodecs = f
27+ .get(7)
28+ .filter(|s| **s != "-")
29+ .map_or_else(String::new, |s| (*s).to_string());
2630 Some((
2731 path,
2832 (*f.get(1)?).to_string(),
29- (*f.get(7)?).to_string(),
33+ acodecs,
3034 f.get(8)?.parse().unwrap_or(0.0),
3135 ))
3236 })