From eadb2ffe85c43cf6fc741c9823cd28eedb4a844c Mon Sep 17 00:00:00 2001 From: Chia Date: Wed, 5 Aug 2026 22:01:29 +1200 Subject: feat: harden prepaid billing and commercial operations --- cmd/aigw/main_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 cmd/aigw/main_test.go (limited to 'cmd/aigw/main_test.go') 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") + } +} -- cgit v1.2.3