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

Function test_validate_bdf_valid

crates/openshell-vfio/src/sysfs.rs:233–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

231
232 #[test]
233 fn test_validate_bdf_valid() {
234 assert!(validate_bdf("0000:2d:00.0").is_ok());
235 assert!(validate_bdf("0000:00:00.0").is_ok());
236 assert!(validate_bdf("abcd:ef:01.a").is_ok());
237 assert!(validate_bdf("ABCD:EF:01.A").is_ok());
238 }
239
240 #[test]
241 fn test_validate_bdf_invalid() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected