mirror of
https://github.com/bybrooklyn/openbitdo.git
synced 2026-03-19 04:12:56 -04:00
release prep: rc.1 baseline and gating updates
This commit is contained in:
15
sdk/tests/pid_registry_unique.rs
Normal file
15
sdk/tests/pid_registry_unique.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use bitdo_proto::pid_registry;
|
||||
use std::collections::HashSet;
|
||||
|
||||
#[test]
|
||||
fn pid_registry_contains_unique_pid_values() {
|
||||
let mut seen = HashSet::new();
|
||||
for row in pid_registry() {
|
||||
assert!(
|
||||
seen.insert(row.pid),
|
||||
"duplicate pid in runtime registry: {:#06x} ({})",
|
||||
row.pid,
|
||||
row.name
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user