1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/// Type representing an ostree commit object.
macro_rules! gv_commit {
    () => {
        gvariant::gv!("(a{sv}aya(say)sstayay)")
    };
}
pub(crate) use gv_commit;

/// Type representing an ostree DIRTREE object.
macro_rules! gv_dirtree {
    () => {
        gvariant::gv!("(a(say)a(sayay))")
    };
}
pub(crate) use gv_dirtree;

#[cfg(test)]
mod tests {
    use gvariant::aligned_bytes::TryAsAligned;
    use gvariant::Marker;

    use super::*;
    #[test]
    fn test_dirtree() {
        // Just a compilation test
        let data = b"".try_as_aligned().ok();
        if let Some(data) = data {
            let _t = gv_dirtree!().cast(data);
        }
    }
}