mirror of
https://github.com/bybrooklyn/openbitdo.git
synced 2026-03-19 12:12:57 -04:00
16 lines
360 B
Rust
16 lines
360 B
Rust
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
|
|
);
|
|
}
|
|
}
|