1 viewer
rust 1,854,395 · typescript 233,161 · javascript 131,995 · python 19,227 · 6,379 files · digest 17dcda71e44b · built in 1.5 s · crystals off
cre8-util-view-golden crates cargo crate
Golden-render harness for the SSR view layer. Renders a ViewNode tree or a ViewTemplateSpec through the REAL cre8-app-view-lib pipeline and compares the bytes against a checked-in tests/golden/*.html snapshot, so a view_templates refactor is provable without building or booting the ~300-crate runtime.
3workspace deps
0direct dependents
0transitive dependents
7calls out
0calls in
42.8call-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
File call graph
Resolved calls between this crate's files, callers left of callees.
Heaviest functions
By call-graph weight (PageRank; 1.0 is the average function). 52 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| previewsrc/diff.rs:83 | fn | 8 | 2 | 3 | 0 | 2.4 | |
| reportsrc/diff.rs:21 | fn | 45 | 4 | 4 | 3 | 1.9 | |
| GoldenCase::assert_htmlsrc/lib.rs:146 | method | 32 | 4 | 4 | 7 | 1.5 | |
| documentsrc/render.rs:64 | fn | 3 | 1 | 2 | 1 | 1.5 | |
| GoldenCase::newsrc/lib.rs:99 | method | 3 | 1 | 2 | 0 | 1.4 | |
| Normalizer::literalsrc/normalize.rs:28 | method | 3 | 1 | 3 | 0 | 1.4 | |
| lfsrc/lib.rs:81 | fn | 3 | 1 | 2 | 0 | 1.3 | |
| GoldenCase::fixture_pathsrc/lib.rs:128 | method | 3 | 1 | 2 | 0 | 1.2 | |
| GoldenCase::normalizesrc/lib.rs:103 | method | 4 | 1 | 3 | 0 | 1.2 | |
| Normalizer::betweensrc/normalize.rs:32 | method | 3 | 1 | 2 | 0 | 1.1 | |
| Normalizer::asset_hashessrc/normalize.rs:36 | method | 3 | 1 | 2 | 0 | 1.1 | |
| app_document_htmlsrc/render.rs:42 | fn | 14 | 1 | 2 | 1 | 1.1 | |
| tree_htmlsrc/render.rs:20 | fn | 3 | 1 | 2 | 1 | 1.1 | |
| chunkssrc/diff.rs:15 | fn | 3 | 1 | 1 | 0 | 1 | |
| push_sidesrc/diff.rs:67 | fn | 13 | 4 | 1 | 1 | 1 | |
| GoldenCase::golden_pathsrc/lib.rs:132 | method | 3 | 1 | 4 | 0 | 1 | |
| temp_casesrc/lib.rs:243 | fn | 4 | 1 | 4 | 1 | 1 | |
| tree_jsonsrc/render.rs:28 | fn | 3 | 1 | 2 | 1 | 0.9 | |
| document_htmlsrc/render.rs:70 | fn | 3 | 1 | 2 | 1 | 0.9 | |
| apply_allsrc/normalize.rs:52 | fn | 3 | 1 | 2 | 0 | 0.9 | |
| GoldenCase::assert_treesrc/lib.rs:181 | method | 3 | 1 | 3 | 2 | 0.9 | |
| is_hash_run_atsrc/normalize.rs:98 | fn | 7 | 3 | 1 | 0 | 0.8 | |
| utf8_char_lensrc/normalize.rs:106 | fn | 8 | 4 | 1 | 0 | 0.8 | |
| replace_betweensrc/normalize.rs:56 | fn | 19 | 4 | 1 | 0 | 0.7 | |
| replace_asset_hashessrc/normalize.rs:78 | fn | 19 | 4 | 1 | 2 | 0.7 | |
| GoldenCase::write_goldensrc/lib.rs:214 | method | 12 | 2 | 1 | 0 | 0.7 | |
| read_goldensrc/lib.rs:228 | fn | 9 | 2 | 1 | 1 | 0.7 | |
| GoldenCase::fixturesrc/lib.rs:138 | method | 6 | 1 | 1 | 1 | 0.6 | |
| GoldenCase::normalize_literalsrc/lib.rs:108 | method | 3 | 1 | 1 | 2 | 0.6 | |
| identical_input_has_no_reportsrc/diff.rs:97 | fn | 3 | 1 | 0 | 1 | 0.5 | |
| report_names_the_diverging_chunk_and_both_sidessrc/diff.rs:102 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| a_pure_insertion_reports_an_empty_sidesrc/diff.rs:110 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| preview_clips_without_splitting_a_codepointsrc/diff.rs:116 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| GoldenCase::normalize_betweensrc/lib.rs:112 | method | 8 | 1 | 0 | 2 | 0.5 | |
| GoldenCase::normalize_asset_hashessrc/lib.rs:124 | method | 3 | 1 | 0 | 2 | 0.5 | |
| GoldenCase::assert_tree_jsonsrc/lib.rs:189 | method | 3 | 1 | 0 | 2 | 0.5 | |
| GoldenCase::assert_app_documentsrc/lib.rs:196 | method | 11 | 1 | 0 | 2 | 0.5 | |
| GoldenCase::assert_documentsrc/lib.rs:210 | method | 3 | 1 | 0 | 2 | 0.5 | |
| missing_golden_is_created_then_matches_on_the_next_runsrc/lib.rs:249 | fn | 12 | 1 | 0 | 3 | 0.5 | |
| a_changed_tree_fails_against_a_written_goldensrc/lib.rs:263 | fn | 12 | 1 | 0 | 3 | 0.5 |
Outside the workspace
serde_json