diff options
| author | historia <[not public]> | 2026-09-16 19:57:45 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-16 19:57:45 -0400 |
| commit | 6ef40a5739f1723ec26cc32dfc48fe764f776dca (patch) | |
| tree | e215a4dc96ea639bcea07bb589aae3e31c3609bb /internal/game/economy_journal_test_helpers_test.go | |
| parent | 1dad15698845d370e998f7cc5feb8aece3fab58f (diff) | |
| download | thehouseoficarus-6ef40a5739f1723ec26cc32dfc48fe764f776dca.tar.gz | |
fix: durable payouts survive journal failure, cap bank withdrawals, hash passwords off the owner loop.
Diffstat (limited to 'internal/game/economy_journal_test_helpers_test.go')
| -rw-r--r-- | internal/game/economy_journal_test_helpers_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/internal/game/economy_journal_test_helpers_test.go b/internal/game/economy_journal_test_helpers_test.go new file mode 100644 index 0000000..e65c622 --- /dev/null +++ b/internal/game/economy_journal_test_helpers_test.go @@ -0,0 +1,14 @@ +package game + +import "testing" + +// mustLoadOpen is the test-side loadOpen: a journal fold failure is a test +// failure, not a nil slice to accidentally treat as "nothing open". +func (j *economyJournal) mustLoadOpen(t *testing.T) []*economyRecord { + t.Helper() + open, err := j.loadOpen() + if err != nil { + t.Fatalf("loadOpen: %v", err) + } + return open +} |
