Skip to content
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.

crates/cre8-util-view-golden · level 8 · 702 lines (453 code) · 4 files · 52 fns (18 tests) · cyclomatic Σ 78

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.

functionkindlinescyclomaticcallerscalleesweightcrystal
previewsrc/diff.rs:83fn82302.4
reportsrc/diff.rs:21fn454431.9
GoldenCase::assert_htmlsrc/lib.rs:146method324471.5
documentsrc/render.rs:64fn31211.5
GoldenCase::newsrc/lib.rs:99method31201.4
Normalizer::literalsrc/normalize.rs:28method31301.4
lfsrc/lib.rs:81fn31201.3
GoldenCase::fixture_pathsrc/lib.rs:128method31201.2
GoldenCase::normalizesrc/lib.rs:103method41301.2
Normalizer::betweensrc/normalize.rs:32method31201.1
Normalizer::asset_hashessrc/normalize.rs:36method31201.1
app_document_htmlsrc/render.rs:42fn141211.1
tree_htmlsrc/render.rs:20fn31211.1
chunkssrc/diff.rs:15fn31101
push_sidesrc/diff.rs:67fn134111
GoldenCase::golden_pathsrc/lib.rs:132method31401
temp_casesrc/lib.rs:243fn41411
tree_jsonsrc/render.rs:28fn31210.9
document_htmlsrc/render.rs:70fn31210.9
apply_allsrc/normalize.rs:52fn31200.9
GoldenCase::assert_treesrc/lib.rs:181method31320.9
is_hash_run_atsrc/normalize.rs:98fn73100.8
utf8_char_lensrc/normalize.rs:106fn84100.8
replace_betweensrc/normalize.rs:56fn194100.7
replace_asset_hashessrc/normalize.rs:78fn194120.7
GoldenCase::write_goldensrc/lib.rs:214method122100.7
read_goldensrc/lib.rs:228fn92110.7
GoldenCase::fixturesrc/lib.rs:138method61110.6
GoldenCase::normalize_literalsrc/lib.rs:108method31120.6
identical_input_has_no_reportsrc/diff.rs:97fn31010.5
report_names_the_diverging_chunk_and_both_sidessrc/diff.rs:102fn61010.5
a_pure_insertion_reports_an_empty_sidesrc/diff.rs:110fn41010.5
preview_clips_without_splitting_a_codepointsrc/diff.rs:116fn61010.5
GoldenCase::normalize_betweensrc/lib.rs:112method81020.5
GoldenCase::normalize_asset_hashessrc/lib.rs:124method31020.5
GoldenCase::assert_tree_jsonsrc/lib.rs:189method31020.5
GoldenCase::assert_app_documentsrc/lib.rs:196method111020.5
GoldenCase::assert_documentsrc/lib.rs:210method31020.5
missing_golden_is_created_then_matches_on_the_next_runsrc/lib.rs:249fn121030.5
a_changed_tree_fails_against_a_written_goldensrc/lib.rs:263fn121030.5

Outside the workspace

serde_json