gix_index/extension/tree/
mod.rs

1use crate::extension::Signature;
2
3/// The signature for tree extensions
4pub const SIGNATURE: Signature = *b"TREE";
5
6///
7pub mod verify;
8
9mod decode;
10pub use decode::decode;
11
12mod write;
13
14#[cfg(test)]
15mod tests {
16    use gix_testtools::size_ok;
17
18    #[test]
19    fn size_of_tree() {
20        let actual = std::mem::size_of::<crate::extension::Tree>();
21        let expected = 88;
22        assert!(
23            size_ok(actual, expected),
24            "the size of this structure should not change unexpectedly: {actual} <~ {expected}"
25        );
26    }
27}