Skip to main content

Module test_util

Module test_util 

Source
Expand description

Utils to make testing easier

Re-exportsΒ§

use rand::RngExt; πŸ”’
use rand::SeedableRng; πŸ”’
use rand::rngs::StdRng; πŸ”’
use std::env; πŸ”’
use std::env; πŸ”’
use std::error::Error; πŸ”’
use std::fs; πŸ”’
use std::io::Write; πŸ”’
use std::path::PathBuf; πŸ”’

StructsΒ§

BadIterator
An iterator that is untruthful about its actual length

FunctionsΒ§

arrow_test_data
Returns the arrow test data directory, which is by default stored in a git submodule rooted at arrow/testing/data.
get_data_dir πŸ”’
Returns a directory path for finding test data.
get_temp_file
Returns file handle for a temp file in β€˜target’ directory with a provided content
parquet_test_data
Returns the parquest test data directory, which is by default stored in a git submodule rooted at arrow/parquest-testing/data.
random_bytes
Returns a vector of size n, filled with randomly generated bytes.
seedable_rng
Returns fixed seedable RNG