diff options
| author | Chia <Chia@93.nz> | 2026-08-05 22:01:29 +1200 |
|---|---|---|
| committer | Chia <Chia@93.nz> | 2026-08-05 22:07:50 +1200 |
| commit | eadb2ffe85c43cf6fc741c9823cd28eedb4a844c (patch) | |
| tree | 1aba2536d57360da403aa35c9ced58b615c7064e /cmd/aigw/main_test.go | |
| parent | cd0dd91ab93653631904f2ea0e574ccde6d60339 (diff) | |
feat: harden prepaid billing and commercial operations
Diffstat (limited to 'cmd/aigw/main_test.go')
| -rw-r--r-- | cmd/aigw/main_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cmd/aigw/main_test.go b/cmd/aigw/main_test.go new file mode 100644 index 0000000..449c35d --- /dev/null +++ b/cmd/aigw/main_test.go @@ -0,0 +1,14 @@ +package main + +import ( + "testing" + + "aigw/internal/controlplane" +) + +func TestOptionalUsageRecorderRejectsTypedNilStore(t *testing.T) { + var store *controlplane.Store + if recorder := optionalUsageRecorder(store); recorder != nil { + t.Fatal("nil control-plane store became a non-nil usage recorder") + } +} |
