mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
Preferences: rustfmt the Effect Cache load test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4c262b0402
commit
d33ec3c76d
1 file changed
+2
-1
@@ -1135,7 +1135,8 @@ fn the_effect_cache_range_matches_the_honoured_budget() {
|
||||
#[test]
|
||||
fn an_effect_cache_above_the_cap_loads_clamped_and_does_not_block_apply() {
|
||||
let cap = WASM_MEMORY_USAGE_CAP_MB;
|
||||
for (stored, small_mb, large_mb) in [(0, 16, 16), (768, 768, 768), (cap + 1, cap, cap + 1), (4096, cap, 4096), (65536, cap, 65536), (u32::MAX, cap, 65536)] {
|
||||
for (stored, small_mb, large_mb) in [(0, 16, 16), (768, 768, 768), (cap + 1, cap, cap + 1), (4096, cap, 4096), (65536, cap, 65536), (u32::MAX, cap, 65536)]
|
||||
{
|
||||
assert_eq!(accepted_effect_cache_mb(stored, true), small_mb, "32-bit, {stored} MB");
|
||||
assert_eq!(accepted_effect_cache_mb(stored, false), large_mb, "64-bit, {stored} MB");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user