1 viewer
rust 1,961,941 · typescript 233,850 · javascript 141,145 · python 22,871 · 6,801 files · digest 6d882eacc8db · built in 12.5 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).
16workspace deps
0direct dependents
0transitive dependents
33calls out
910calls in
423call-graph weight
0.0%exact crystals
Neighbourhood
Left: crates that declare this one. Right: crates it declares (dev-dependencies included). Edge width grows with resolved calls.
Files
lowhigh
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 | 119 | 2 | 63.2 | |
| EnvVarGuard::newsrc/lib.rs:56 | method | 3 | 1 | 21 | 1 | 38.1 | |
| env_test_locksrc/lib.rs:36 | fn | 3 | 1 | 2 | 1 | 33.1 | |
| memorysrc/test_fixtures.rs:99 | fn | 3 | 1 | 95 | 1 | 32.1 | |
| unique_temp_dirsrc/temp_db.rs:42 | fn | 6 | 1 | 9 | 0 | 29.1 | |
| env_test_mutexsrc/lib.rs:40 | fn | 4 | 1 | 1 | 0 | 28.6 | |
| remove_sqlite_sidecarssrc/temp_db.rs:49 | fn | 5 | 1 | 2 | 0 | 27.8 | |
| isolated_hyperdbsrc/test_fixtures.rs:116 | fn | 9 | 1 | 64 | 3 | 25 | |
| EnvVarGuard::setsrc/lib.rs:60 | method | 7 | 2 | 121 | 1 | 21.6 | |
| TempDb::contextsrc/temp_db.rs:28 | method | 3 | 1 | 145 | 1 | 19.1 | |
| open_test_graphsrc/lib.rs:21 | fn | 3 | 1 | 194 | 0 | 18.7 | |
| EnvVarGuard::unsetsrc/lib.rs:68 | method | 7 | 2 | 87 | 1 | 17 | |
| TempDb::pathsrc/temp_db.rs:24 | method | 3 | 1 | 25 | 0 | 9.8 | |
| unique_tempdirsrc/test_fixtures.rs:90 | fn | 6 | 1 | 6 | 2 | 9.2 | |
| next_seqsrc/test_fixtures.rs:78 | fn | 3 | 1 | 1 | 0 | 4.4 | |
| unique_nanossrc/test_fixtures.rs:82 | fn | 3 | 1 | 1 | 0 | 4.4 | |
| 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.8 | |
| 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.6 | |
| 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