rust 1,849,384 · typescript 232,426 · javascript 131,078 · python 19,227 · 6,366 files · digest 815dcbacab85 · built in 1.4 s · crystals off
cre8-test-helpers crates cargo crate
Shared test helpers — EnvVarGuard (RAII env-var mutator), process_test_lock, open_test_graph, test_fixtures, test_tracing. Lifted from the old root common helpers (test_env originally, then full common/ in the mega-mode collapse 2026-05-23).
Neighbourhood
Left: crates that declare this one. Right: crates it declares (dev-dependencies included). Edge width grows with resolved calls.
Declared but never named in this crate's source: cre8-app-association-model (normal), cre8-app-passport-model (normal), cre8-platform-time (normal), cre8-util-crypto (normal).
Files
Heaviest functions
By call-graph weight (PageRank; 1.0 is the average function). 59 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| TempDb::newsrc/temp_db.rs:16 | method | 7 | 1 | 109 | 2 | 54.5 | |
| EnvVarGuard::newsrc/lib.rs:56 | method | 3 | 1 | 21 | 1 | 38.2 | |
| env_test_locksrc/lib.rs:36 | fn | 3 | 1 | 2 | 1 | 33.2 | |
| memorysrc/test_fixtures.rs:99 | fn | 3 | 1 | 93 | 1 | 31.6 | |
| env_test_mutexsrc/lib.rs:40 | fn | 4 | 1 | 1 | 0 | 28.7 | |
| unique_temp_dirsrc/temp_db.rs:42 | fn | 6 | 1 | 9 | 0 | 25.5 | |
| remove_sqlite_sidecarssrc/temp_db.rs:49 | fn | 5 | 1 | 2 | 0 | 24.1 | |
| isolated_hyperdbsrc/test_fixtures.rs:116 | fn | 9 | 1 | 61 | 3 | 23.5 | |
| EnvVarGuard::setsrc/lib.rs:60 | method | 7 | 2 | 121 | 1 | 21.8 | |
| open_test_graphsrc/lib.rs:21 | fn | 3 | 1 | 194 | 0 | 18.8 | |
| TempDb::contextsrc/temp_db.rs:28 | method | 3 | 1 | 126 | 1 | 17.7 | |
| EnvVarGuard::unsetsrc/lib.rs:68 | method | 7 | 2 | 87 | 1 | 17.1 | |
| TempDb::pathsrc/temp_db.rs:24 | method | 3 | 1 | 23 | 0 | 9.4 | |
| unique_tempdirsrc/test_fixtures.rs:90 | fn | 6 | 1 | 5 | 2 | 8.6 | |
| next_seqsrc/test_fixtures.rs:78 | fn | 3 | 1 | 1 | 0 | 4.2 | |
| unique_nanossrc/test_fixtures.rs:82 | fn | 3 | 1 | 1 | 0 | 4.2 | |
| process_test_mutexsrc/lib.rs:31 | fn | 4 | 1 | 2 | 0 | 4 | |
| process_test_locksrc/lib.rs:27 | fn | 3 | 1 | 25 | 1 | 3.4 | |
| staked_singlesrc/test_fixtures.rs:170 | fn | 27 | 1 | 3 | 0 | 3.2 | |
| ensure_runtime_harness_registeredsrc/runtime_harness.rs:110 | fn | 7 | 1 | 4 | 2 | 2.1 | |
| staked_universalsrc/test_fixtures.rs:200 | fn | 10 | 1 | 4 | 1 | 2 | |
| runtime_appssrc/runtime_harness.rs:54 | fn | 4 | 1 | 7 | 2 | 1.9 | |
| memory_with_peersrc/test_fixtures.rs:106 | fn | 6 | 1 | 6 | 1 | 1.8 | |
| make_full_receiptsrc/test_fixtures.rs:224 | fn | 37 | 1 | 3 | 0 | 1.7 | |
| register_test_view_providersrc/runtime_harness.rs:118 | fn | 57 | 5 | 1 | 10 | 1.4 | |
| runtime_appsrc/runtime_harness.rs:49 | fn | 4 | 1 | 3 | 2 | 1.3 | |
| EnvVarGuard::set_varsrc/lib.rs:76 | method | 6 | 1 | 3 | 1 | 0.9 | |
| init_oncesrc/test_fixtures.rs:53 | fn | 3 | 1 | 1 | 0 | 0.9 | |
| init_test_tracingsrc/test_tracing.rs:32 | fn | 10 | 1 | 1 | 0 | 0.9 | |
| provider_missingsrc/runtime_harness.rs:106 | fn | 3 | 1 | 2 | 0 | 0.8 | |
| init_appssrc/runtime_harness.rs:30 | fn | 12 | 4 | 1 | 5 | 0.7 | |
| test_env_namesrc/lib.rs:116 | fn | 3 | 1 | 2 | 0 | 0.7 | |
| BootGraph::newsrc/runtime_harness.rs:10 | method | 4 | 1 | 1 | 3 | 0.7 | |
| appsrc/runtime_harness.rs:59 | fn | 3 | 1 | 1 | 1 | 0.6 | |
| EnvVarGuard::defaultsrc/lib.rs:92 | trait impl | 3 | 1 | 1 | 1 | 0.6 | |
| isolated_sqlitesrc/test_fixtures.rs:129 | fn | 14 | 1 | 1 | 3 | 0.6 | |
| EnvVarGuard::remove_varsrc/lib.rs:83 | method | 6 | 1 | 0 | 1 | 0.5 | |
| EnvVarGuard::dropsrc/lib.rs:98 | trait impl | 12 | 3 | 0 | 0 | 0.5 | |
| open_test_graph_returns_empty_memory_graphsrc/lib.rs:121 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| process_and_env_locks_are_reentrant_after_dropsrc/lib.rs:129 | fn | 6 | 1 | 0 | 2 | 0.5 |
Outside the workspace
anyhow cre8-vm-contracts cre8-vm-ir-core hyperdb serde_json tracing tracing-subscriber