Bootstrap OpenBitdo clean-room SDK and reliability milestone

This commit is contained in:
2026-02-27 20:43:34 -05:00
commit d5afadf560
46 changed files with 3652 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
use bitdo_proto::ProfileBlob;
use std::fs;
use std::path::PathBuf;
#[test]
fn golden_profile_fixture_roundtrips() {
let manifest = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
let path = manifest.join("../../../harness/golden/profile_fixture.bin");
let fixture = fs::read(path).expect("read fixture");
let blob = ProfileBlob::from_bytes(&fixture).expect("parse fixture");
assert_eq!(blob.slot, 2);
assert_eq!(blob.payload.len(), 16);
let serialized = blob.to_bytes();
assert_eq!(serialized, fixture);
}