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

Function test_ptmest

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

Source from the content-addressed store, hash-verified

398 }
399 #[test]
400 fn test_ptmest() -> Result<()> {
401 let mut est: PtmEst = PtmEst::new();
402 let buf: &[u8] = &[0, 0, 0xE, 0, 0xC, 0, 1, 1];
403 est.update_ptm_with_response(buf)?;
404 assert_eq!(est.get_result_code(), 0xE00);
405 assert_eq!(est.resp.bit, 0xC);
406 Ok(())
407 }
408 #[test]
409 /*PtmInit Testing */
410 fn test_ptminit() -> Result<()> {

Callers

nothing calls this directly

Calls 2

newFunction · 0.85

Tested by

no test coverage detected