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

Function test_ptmresult

tpm/src/lib.rs:384–390  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

382 use super::*;
383 #[test]
384 fn test_ptmresult() -> Result<()> {
385 let buf: &[u8] = &[0, 0, 0, 1];
386 let mut result_code: PtmResult = 0;
387 result_code.update_ptm_with_response(buf)?;
388 assert_eq!(result_code.get_result_code(), 0x1);
389 Ok(())
390 }
391 #[test]
392 fn test_ptmcap() -> Result<()> {
393 let mut cap: PtmCap = 0x0;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected