Skip to main content

vortex_arrow/test_harness/
mod.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright the Vortex contributors
3
4//! Independent Arrow conformance checks and nested transport assertions.
5//!
6//! Plugin crates enable `_test-harness-hegel` and supply an independently built canonical Arrow
7//! field and array to `check_generated`. This checks both conversion directions, field inference,
8//! default export, and round trips through nested arrays. Use [`check_arrow`] for additional
9//! explicit targets. Fuzz targets use [`check_containers`] with `_test-harness`, so they do not link
10//! Hegel's native backend under libFuzzer coverage flags.
11//!
12//! Hegel suites run 100 cases with at most 32 rows and three extra nesting levels. Failures print
13//! a replay blob for `#[hegel::reproduce_failure("...")]`. Variant transport needs the Parquet
14//! Variant plugin, so its suite lives in `vortex-parquet-variant`.
15
16#[cfg(feature = "_test-harness-hegel")]
17mod generate;
18#[cfg(feature = "_test-harness-hegel")]
19pub use generate::StorageCase;
20#[cfg(feature = "_test-harness-hegel")]
21pub use generate::check_generated;
22#[cfg(feature = "_test-harness-hegel")]
23pub use generate::check_generated_containers;
24#[cfg(feature = "_test-harness-hegel")]
25pub use generate::draw_storage_case;
26
27mod round_trip;
28pub use round_trip::check_arrow;
29pub use round_trip::check_containers;
30
31#[cfg(all(test, feature = "_test-harness-hegel"))]
32mod temporal;