style: cargo fmt kernel crates
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use super::{arbitrary_endpoint_cap, insert_cap};
|
||||
use domain::capability::{Capability, CapabilityTable};
|
||||
use domain::endpoint::Endpoint;
|
||||
use domain::resource::Resource;
|
||||
use super::{arbitrary_endpoint_cap, insert_cap};
|
||||
use types::generation::Generation;
|
||||
use types::id::EndpointId;
|
||||
use types::permission::{Permission, PermissionSet};
|
||||
@@ -81,12 +81,24 @@ fn generation_revocation_invalidates_all_caps() {
|
||||
let mut table = CapabilityTable::new();
|
||||
let slot = insert_cap(&mut table, cap);
|
||||
|
||||
assert!(table.get(slot).unwrap().generation().is_valid_against(&original_gen));
|
||||
assert!(
|
||||
table
|
||||
.get(slot)
|
||||
.unwrap()
|
||||
.generation()
|
||||
.is_valid_against(&original_gen)
|
||||
);
|
||||
|
||||
endpoint.revoke();
|
||||
let new_gen = *endpoint.generation();
|
||||
|
||||
assert!(!table.get(slot).unwrap().generation().is_valid_against(&new_gen));
|
||||
assert!(
|
||||
!table
|
||||
.get(slot)
|
||||
.unwrap()
|
||||
.generation()
|
||||
.is_valid_against(&new_gen)
|
||||
);
|
||||
}
|
||||
|
||||
#[kani::proof]
|
||||
|
||||
Reference in New Issue
Block a user