Crates.io | graph-api-test |
lib.rs | graph-api-test |
version | |
source | src |
created_at | 2025-04-12 22:41:50.592368+00 |
updated_at | 2025-04-20 22:44:36.714971+00 |
description | Test utilities and property-based testing for the graph-api ecosystem |
homepage | |
repository | https://github.com/BrynCooke/graph-api |
max_upload_size | |
id | 1631325 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Welcome to graph-api-test — your friendly companion for ensuring your graph implementation behaves exactly as expected!
Implementing the Graph-API traits for your custom graph structure? This comprehensive test suite takes the guesswork out of compatibility testing, giving you confidence that your graph behaves correctly.
Testing your graph implementation couldn't be easier:
#[cfg(test)]
mod test {
use graph_api_test::test_suite;
// One line to test everything!
test_suite!(YourGraph::new());
}
With this simple macro, you'll validate that your graph implementation properly supports all the operations and behaviors expected by the Graph-API ecosystem. No need to write tedious test cases for each feature!
Implementing only a subset of Graph-API's optional capabilities? No problem! Simply include the features that match your implementation:
[dev-dependencies]
graph-api-test = { version = "0.1.0", features = [
"vertex-label-index",
"edge-label-index",
"vertex-range-index"
] }
vertex-label-index
: Label-based vertex lookupsedge-label-index
: Label-based edge traversalsvertex-hash-index
: Hash-indexed vertex propertiesedge-hash-index
: Hash-indexed edge propertiesvertex-range-index
: Range queries for vertex propertiesedge-range-index
: Range queries for edge propertiesvertex-full-text-index
: Full-text search for vertex propertiesgraph-clear
: Graph clearing operationsMost tests use a consistent, well-defined graph with:
This standardized structure ensures that all graph implementations are tested against the same scenarios.
Need to test specific aspects of your implementation? The suite provides helpful utilities:
Make your graph implementation rock-solid with graph-api-test!
Learn more in the graph-api book.