Skip to content
1 viewer

rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off

check_budget

cre8_app_metering::budget_policy::check_budget

fn · cre8-app-metering · crates/cre8-app-metering/src/budget_policy.rs:79 pub generic documented

49lines
6cyclomatic
2max nesting
13statements
0? exits
7params
6callers
3callees
1.1 (p81)call-graph weight

Crystal

no crystal was derived for this function

Call neighbourhood

Callers left, callees right, two hops each way (6 direct callers, 3 direct callees; the heaviest shown). Dashed edges are method calls resolved by name alone.

name · 1 sitename · 1 sitename · 1 sitename · 1 sitename · 1 sitepath · 1 sitemethod · 1 sitepath · 1 sitename · 1 sitename · 1 sitemethod · 1 sitename · 1 sitemethod · 1 sitepath · 1 sitename · 1 sitemethod · 1 sitename · 1 sitepath · 1 sitemethod · 1 siteempty_estimate_passes_trivi…app-metering · cc 1cre8_app_metering::budget_policy::tests::empty_estimate_passes_triviallyestimate_under_cap_passesapp-metering · cc 1cre8_app_metering::budget_policy::tests::estimate_under_cap_passesestimate_over_cap_deniesapp-metering · cc 2cre8_app_metering::budget_policy::tests::estimate_over_cap_deniesmissing_manifold_for_estima…app-metering · cc 1cre8_app_metering::budget_policy::tests::missing_manifold_for_estimated_asset_errorszero_amount_skipped_silentlyapp-metering · cc 1cre8_app_metering::budget_policy::tests::zero_amount_skipped_silentlyMeteredCaller::callapp-metering · cc 4cre8_app_metering::metered_caller::MeteredCaller::callcheck_budgetapp-metering · cc 6cre8_app_metering::budget_policy::check_budgetManifoldRegistry::find_for_…app-manifold · cc 3cre8_app_manifold::contract_store::ManifoldRegistry::find_for_assetcheck_capsapp-manifold · cc 6cre8_app_manifold::rules::check_capsread_flow_historyapp-metering · cc 12cre8_app_metering::budget_policy::read_flow_historyHyperDbProtocolStore::graphapp-protocol · cc 1cre8_app_protocol::store_adapter::HyperDbProtocolStore::graphAssetRef::newruntime-contracts · cc 1cre8_runtime_contracts::asset_ref::AssetRef::newpath_is_prefix_ofapp-manifold · cc 3cre8_app_manifold::contract_store::path_is_prefix_ofAssetRef::matches_patternruntime-contracts · cc 1cre8_runtime_contracts::asset_ref::AssetRef::matches_patternpattern_matchesruntime-app-types · cc 6cre8_runtime_app_types::listener_dispatch::pattern_matchesFlowHistory::newapp-manifold · cc 1cre8_app_manifold::rules::FlowHistory::newscope_keyapp-manifold · cc 5cre8_app_manifold::rules::scope_keyFlowHistory::sum_in_windowapp-manifold · cc 2cre8_app_manifold::rules::FlowHistory::sum_in_windowscope_key_matchesapp-metering · cc 6cre8_app_metering::budget_policy::scope_key_matches

Control flow

Source not readable from this process.

Callers 6

Callees 3

Source not readable from this process.