From 42732b5f40fbeb22cea43f104c720f66c3eba2ad Mon Sep 17 00:00:00 2001 From: Edmondo Porcu Date: Sat, 27 Jul 2024 07:18:00 -0400 Subject: [PATCH] Docs: adding explicit mention of test_utils to docs (#11670) * Docs: adding explicit mention of test_utils to docs * Improved wording --- docs/source/contributor-guide/testing.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/contributor-guide/testing.md b/docs/source/contributor-guide/testing.md index 0f4461ab2c2c..90e39c0057c1 100644 --- a/docs/source/contributor-guide/testing.md +++ b/docs/source/contributor-guide/testing.md @@ -30,6 +30,7 @@ and tries to follow the Rust standard [Testing Organization](https://doc.rust-la ## Unit tests Tests for code in an individual module are defined in the same source file with a `test` module, following Rust convention. +The [test_util](https://github.com/apache/datafusion/tree/main/datafusion/common/src/test_util.rs) module provides useful macros to write unit tests effectively, such as `assert_batches_sorted_eq` and `assert_batches_eq` for RecordBatches and `assert_contains` / `assert_not_contains` which are used extensively in the codebase. ## sqllogictests Tests