| Crates.io | entidb_testkit |
| lib.rs | entidb_testkit |
| version | 2.0.0-alpha.3 |
| created_at | 2025-12-25 15:19:08.127932+00 |
| updated_at | 2026-01-03 03:44:53.936472+00 |
| description | Test utilities for EntiDB |
| homepage | |
| repository | https://github.com/Tembocs/entidb |
| max_upload_size | |
| id | 2004648 |
| size | 116,469 |
Test utilities for EntiDB.
This crate provides comprehensive testing utilities for EntiDB, including property-based testing, fuzz harnesses, golden tests, and test vector validation.
The crate includes validation against the canonical test vectors in docs/test_vectors/:
cbor.json - Canonical CBOR encoding vectorsentity_id.json - Entity ID generation and parsingsegment.json - Segment record formatwal.json - WAL record formatuse entidb_testkit::{TestDatabase, arb_entity_id};
// Create a temporary test database
let db = TestDatabase::new();
// Use proptest strategies
proptest! {
fn test_entity_roundtrip(id in arb_entity_id()) {
// ...
}
}
Licensed under either of Apache License, Version 2.0 or MIT license at your option.