Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

readstat-tests

Integration test suite for the readstat library and readstat-cli binary.

Contains 30 test modules covering all SAS data types, 118 date/time/datetime formats, missing values, large pages, CLI subcommands, parallel read/write, Parquet output, CSV output, Arrow migration, row offsets, scientific notation, column selection, skip row count, memory-mapped file reading, byte-slice reading, and SQL queries.

All test files compile into one integration_tests binary (autotests = false): a separate binary per file would link Arrow and DataFusion ~35 times and fill tens of GB of disk. To add a test file, declare it with mod <file_name>; in tests/lib.rs and use shared helpers through use crate::common;. Run one file’s tests with cargo test -p readstat-tests <file_name>::.

Test data lives in tests/data/*.sas7bdat (14 datasets). SAS scripts to regenerate test data are in util/.

Run with:

cargo test -p readstat-tests