initial inventory service

This commit is contained in:
matst80
2025-11-04 12:48:41 +01:00
parent 42e38504a3
commit c67ebd7a5f
7 changed files with 237 additions and 2 deletions

View File

@@ -21,8 +21,8 @@ func TestRegisteredMutationBasics(t *testing.T) {
func(state *cartState, msg *messages.AddItem) error {
state.calls++
// copy to avoid external mutation side-effects (not strictly necessary for the test)
cp := *msg
state.lastAdded = &cp
cp := msg
state.lastAdded = cp
return nil
},
func() *messages.AddItem { return &messages.AddItem{} },