MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / fixture_bytes

Function fixture_bytes

atomic-core/src/change/format_v3/compatibility.rs:102–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100 use super::*;
101
102 fn fixture_bytes() -> Vec<u8> {
103 let hex: String = include_str!("fixtures/july_2026_legacy_provenance.hex")
104 .chars()
105 .filter(|character| !character.is_ascii_whitespace())
106 .collect();
107 assert_eq!(hex.len() % 2, 0);
108 (0..hex.len())
109 .step_by(2)
110 .map(|index| u8::from_str_radix(&hex[index..index + 2], 16).unwrap())
111 .collect()
112 }
113
114 #[test]
115 fn july_2026_fixture_requires_compatibility_layout() {

Calls 3

collectMethod · 0.45
lenMethod · 0.45
unwrapMethod · 0.45