MCPcopy Create free account
hub / github.com/bitfield/ftl-code / TestWithdrawInvalid

Function TestWithdrawInvalid

withdraw/withdraw_test.go:22–30  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

20}
21
22func TestWithdrawInvalid(t *testing.T) {
23 t.Parallel()
24 balance := 20
25 amount := 100
26 _, err := withdraw.Withdraw(balance, amount)
27 if err == nil {
28 t.Fatal("want error for invalid withdrawal, got nil")
29 }
30}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected