Use a single TPM context and avoid race conditions during tests #870
75.26% of diff hit (target 61.35%)
View this Pull Request on Codecov
75.26% of diff hit (target 61.35%)
Annotations
Check warning on line 24 in keylime-agent/src/agent_handler.rs
codecov / codecov/patch
keylime-agent/src/agent_handler.rs#L24
Added line #L24 was not covered by tests
Check warning on line 320 in keylime-agent/src/keys_handler.rs
codecov / codecov/patch
keylime-agent/src/keys_handler.rs#L320
Added line #L320 was not covered by tests
Check warning on line 308 in keylime-agent/src/main.rs
codecov / codecov/patch
keylime-agent/src/main.rs#L308
Added line #L308 was not covered by tests
Check warning on line 401 in keylime-agent/src/main.rs
codecov / codecov/patch
keylime-agent/src/main.rs#L401
Added line #L401 was not covered by tests
Check warning on line 775 in keylime-agent/src/main.rs
codecov / codecov/patch
keylime-agent/src/main.rs#L775
Added line #L775 was not covered by tests
Check warning on line 1097 in keylime-agent/src/main.rs
codecov / codecov/patch
keylime-agent/src/main.rs#L1095-L1097
Added lines #L1095 - L1097 were not covered by tests
Check warning on line 1119 in keylime-agent/src/main.rs
codecov / codecov/patch
keylime-agent/src/main.rs#L1119
Added line #L1119 was not covered by tests
Check warning on line 1124 in keylime-agent/src/main.rs
codecov / codecov/patch
keylime-agent/src/main.rs#L1121-L1124
Added lines #L1121 - L1124 were not covered by tests
Check warning on line 1127 in keylime-agent/src/main.rs
codecov / codecov/patch
keylime-agent/src/main.rs#L1126-L1127
Added lines #L1126 - L1127 were not covered by tests
Check warning on line 1188 in keylime-agent/src/main.rs
codecov / codecov/patch
keylime-agent/src/main.rs#L1188
Added line #L1188 was not covered by tests
Check warning on line 1198 in keylime-agent/src/main.rs
codecov / codecov/patch
keylime-agent/src/main.rs#L1197-L1198
Added lines #L1197 - L1198 were not covered by tests
Check warning on line 1205 in keylime-agent/src/main.rs
codecov / codecov/patch
keylime-agent/src/main.rs#L1205
Added line #L1205 was not covered by tests
Check warning on line 1207 in keylime-agent/src/main.rs
codecov / codecov/patch
keylime-agent/src/main.rs#L1207
Added line #L1207 was not covered by tests
Check warning on line 508 in keylime/src/tpm.rs
codecov / codecov/patch
keylime/src/tpm.rs#L508
Added line #L508 was not covered by tests
Check warning on line 517 in keylime/src/tpm.rs
codecov / codecov/patch
keylime/src/tpm.rs#L516-L517
Added lines #L516 - L517 were not covered by tests
Check warning on line 553 in keylime/src/tpm.rs
codecov / codecov/patch
keylime/src/tpm.rs#L551-L553
Added lines #L551 - L553 were not covered by tests
Check warning on line 574 in keylime/src/tpm.rs
codecov / codecov/patch
keylime/src/tpm.rs#L571-L574
Added lines #L571 - L574 were not covered by tests
Check warning on line 712 in keylime/src/tpm.rs
codecov / codecov/patch
keylime/src/tpm.rs#L712
Added line #L712 was not covered by tests
Check warning on line 715 in keylime/src/tpm.rs
codecov / codecov/patch
keylime/src/tpm.rs#L715
Added line #L715 was not covered by tests
Check warning on line 1378 in keylime/src/tpm.rs
codecov / codecov/patch
keylime/src/tpm.rs#L1377-L1378
Added lines #L1377 - L1378 were not covered by tests
Check warning on line 1402 in keylime/src/tpm.rs
codecov / codecov/patch
keylime/src/tpm.rs#L1401-L1402
Added lines #L1401 - L1402 were not covered by tests
Check warning on line 1471 in keylime/src/tpm.rs
codecov / codecov/patch
keylime/src/tpm.rs#L1467-L1471
Added lines #L1467 - L1471 were not covered by tests
Check warning on line 1474 in keylime/src/tpm.rs
codecov / codecov/patch
keylime/src/tpm.rs#L1473-L1474
Added lines #L1473 - L1474 were not covered by tests
Check warning on line 1477 in keylime/src/tpm.rs
codecov / codecov/patch
keylime/src/tpm.rs#L1476-L1477
Added lines #L1476 - L1477 were not covered by tests
Check warning on line 1965 in keylime/src/tpm.rs
codecov / codecov/patch
keylime/src/tpm.rs#L1965
Added line #L1965 was not covered by tests