Skip to content

Commit

Permalink
Docs: adding explicit mention of test_utils to docs (#11670)
Browse files Browse the repository at this point in the history
* Docs: adding explicit mention of test_utils to docs

* Improved wording
  • Loading branch information
edmondop committed Jul 27, 2024
1 parent 204e1bc commit 42732b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/contributor-guide/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 42732b5

Please sign in to comment.