cultcache-rs: pin the one-global rule on load_soa (PR #15 gap) #27
Loading…
Reference in a new issue
No description provided.
Delete branch "libby/cultcache-rs-load-soa-global-test"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
loading_an_soa_table_that_holds_two_globals_is_refusedtopackages/cultcache-rs/tests/lookups.rs.CultCache::load_soachecks the table withrefuse_second_globals(src/lib.rs), but PR #15's tests covered only the put paths andpull_all. The test builds a table of twoSettingsglobals: the load is refused with a typedCultCacheSecondGlobalnaming both keys, the prior view (global and plain record) is untouched, and a table with a single global loads and replaces the view.Mutation check: removing the
refuse_second_globalscall inload_soa(and inpull_all, same sed) fails this test and the store-load test; restored afterwards.cargo test --test lookups: 17 passed.Test-only change; no source touched.
🤖 Generated with Claude Code