MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / parse_cpu_millicore

Function parse_cpu_millicore

crates/openshell-driver-podman/src/container.rs:1174–1178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1172
1173 #[test]
1174 fn parse_cpu_millicore() {
1175 assert_eq!(parse_cpu_to_microseconds("500m"), Some(50_000));
1176 assert_eq!(parse_cpu_to_microseconds("1000m"), Some(100_000));
1177 assert_eq!(parse_cpu_to_microseconds("250m"), Some(25_000));
1178 }
1179
1180 #[test]
1181 fn parse_cpu_whole_cores() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected