froe 0.11.0

Reader and offline maintenance toolkit for Apache Jackrabbit Oak segment-tar (TarMK) repositories: parse archives and records, extract node data, compact, back up, and recover.
Documentation
//! Public-path compatibility checks for garbage-collection generation metadata.

use froe::GarbageCollectionGeneration as RootGeneration;
use froe::segment::GarbageCollectionGeneration as NeutralGeneration;
use froe::writer::GarbageCollectionGeneration as WriterGeneration;
use froe::writer::segment_builder::GarbageCollectionGeneration as SegmentBuilderGeneration;

#[test]
fn legacy_writer_exports_are_the_neutral_type() {
    let neutral = NeutralGeneration {
        generation: 3,
        full_generation: 2,
        is_compacted: true,
    };
    let segment_builder_export: SegmentBuilderGeneration = neutral;
    let writer_export: WriterGeneration = segment_builder_export;
    let root_export: RootGeneration = writer_export;

    assert_eq!(root_export, neutral);
}

#[test]
fn visited_node_keeps_its_three_field_destructuring_surface() {
    #[allow(
        clippy::needless_pass_by_value,
        reason = "moving the external public value is the compatibility surface under test"
    )]
    fn destructure(visited: froe::content::traversal::VisitedNode<'_, '_>) {
        let froe::content::traversal::VisitedNode { path, node, depth } = visited;
        let _ = (path, node, depth);
    }

    let _ = destructure;
}