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

Function test_ptmcap

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

Source from the content-addressed store, hash-verified

390 }
391 #[test]
392 fn test_ptmcap() -> Result<()> {
393 let mut cap: PtmCap = 0x0;
394 let buf: &[u8] = &[0, 0, 0, 0xE, 0, 0, 0xFF, 0xFF];
395 cap.update_ptm_with_response(buf)?;
396 assert_eq!(cap.get_result_code(), 0xE);
397 Ok(())
398 }
399 #[test]
400 fn test_ptmest() -> Result<()> {
401 let mut est: PtmEst = PtmEst::new();

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected