MCPcopy Create free account
hub / github.com/bootc-dev/bootc / parse_all

Function parse_all

crates/sysusers/src/lib.rs:445–449  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

443 "#};
444
445 fn parse_all(s: &str) -> impl Iterator<Item = SysusersEntry> + use<'_> {
446 s.lines()
447 .filter(|line| !(line.is_empty() || line.starts_with('#')))
448 .map(|line| SysusersEntry::parse(line).unwrap().unwrap())
449 }
450
451 #[test]
452 fn test_sysusers_parse() -> Result<()> {

Callers 1

test_sysusers_parseFunction · 0.70

Calls 2

parseFunction · 0.85
is_emptyMethod · 0.45

Tested by 1

test_sysusers_parseFunction · 0.56