MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / new_dbus_api

Method new_dbus_api

cloud-hypervisor/tests/common/utils.rs:40–49  ·  view source on GitHub ↗
(tmp_dir: &TempDir)

Source from the content-addressed store, hash-verified

38 }
39
40 pub(crate) fn new_dbus_api(tmp_dir: &TempDir) -> Self {
41 // `tmp_dir` is in the form of "/tmp/chXXXXXX"
42 // and we take the `chXXXXXX` part as a unique identifier for the guest
43 let id = tmp_dir.as_path().file_name().unwrap().to_str().unwrap();
44
45 Self::DBusApi(
46 format!("org.cloudhypervisor.{id}"),
47 format!("/org/cloudhypervisor/{id}"),
48 )
49 }
50
51 pub(crate) fn guest_args(&self) -> Vec<String> {
52 match self {

Callers

nothing calls this directly

Calls 1

DBusApiClass · 0.85

Tested by

no test coverage detected