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

Function test_is_gpu_class

crates/openshell-vfio/src/gpu.rs:229–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

227
228 #[test]
229 fn test_is_gpu_class() {
230 assert!(is_gpu_class("0x030000"));
231 assert!(is_gpu_class("0x030200"));
232 assert!(is_gpu_class("0x030201"));
233 assert!(!is_gpu_class("0x040300"));
234 assert!(!is_gpu_class("0x060000"));
235 assert!(!is_gpu_class(""));
236 }
237
238 #[test]
239 fn test_prepare_gpu_skips_already_bound_companions() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected