MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / service_binary_matches_current

Function service_binary_matches_current

packages/server/src/main.rs:2252–2255  ·  view source on GitHub ↗
(metadata: &ServiceMetadata)

Source from the content-addressed store, hash-verified

2250}
2251
2252fn service_binary_matches_current(metadata: &ServiceMetadata) -> anyhow::Result<bool> {
2253 let current = current_simdeck_executable_path()?;
2254 Ok(paths_refer_to_same_file(&metadata.binary_path, &current))
2255}
2256
2257fn current_simdeck_executable_path() -> anyhow::Result<PathBuf> {
2258 if let Some(arg0) = env::args_os().next().filter(|value| !value.is_empty()) {

Callers 2

run_default_serviceFunction · 0.85

Calls 2

paths_refer_to_same_fileFunction · 0.85

Tested by

no test coverage detected