MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / parse_io_platform_uuid

Function parse_io_platform_uuid

packages/server/src/config.rs:154–166  ·  view source on GitHub ↗
(output: &str)

Source from the content-addressed store, hash-verified

152}
153
154fn parse_io_platform_uuid(output: &str) -> Option<String> {
155 output.lines().find_map(|line| {
156 let (_, value) = line.split_once("\"IOPlatformUUID\"")?;
157 let (_, value) = value.split_once('=')?;
158 value
159 .trim()
160 .trim_matches('"')
161 .split_whitespace()
162 .next()
163 .filter(|value| !value.is_empty())
164 .map(ToOwned::to_owned)
165 })
166}
167
168#[cfg(test)]
169mod tests {

Callers 1

io_platform_uuidFunction · 0.85

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected