diff --git a/pkg/model/amount_test.go b/pkg/model/amount_test.go index d497ae6d9..615defa06 100644 --- a/pkg/model/amount_test.go +++ b/pkg/model/amount_test.go @@ -251,6 +251,9 @@ func TestAmount__plus(t *testing.T) { func TestAmount__validate(t *testing.T) { amt := &Amount{} + if err := amt.Validate(); err == nil { + t.Error("expected error") + } amt = nil if err := amt.Validate(); err == nil { t.Error("expected error")