19 lines
527 B
Rust
19 lines
527 B
Rust
use lazaret_linux::private_role::{PrivateRole, PrivateRoleRegistry};
|
|
use lazaret_linux::process::{PRIVATE_PROCESS_ROLE, dispatch_private_process_role};
|
|
|
|
static ROLES: [PrivateRole; 1] = [PrivateRole::new(
|
|
PRIVATE_PROCESS_ROLE,
|
|
dispatch_private_process_role,
|
|
)];
|
|
|
|
pub static REGISTRY: PrivateRoleRegistry = PrivateRoleRegistry::new(&ROLES);
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
use super::*;
|
|
|
|
#[test]
|
|
fn client_declares_only_process_acquisition() {
|
|
assert_eq!(REGISTRY.names(), [PRIVATE_PROCESS_ROLE]);
|
|
}
|
|
}
|