Skip to content

Commit

Permalink
refactor: remove unused func mustDecimalFromString
Browse files Browse the repository at this point in the history
  • Loading branch information
clD11 committed Sep 11, 2024
1 parent 500aa2a commit ab95fa1
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions services/skus/model/model_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1362,23 +1362,6 @@ func TestOrderItemRequestNew_Metadata(t *testing.T) {
}
}

func mustDecimalFromString(v string) decimal.Decimal {
result, err := decimal.NewFromString(v)
if err != nil {
panic(err)
}

for i := range tests {
tc := tests[i]

t.Run(tc.name, func(t *testing.T) {
actual, ok := tc.given.StripeItemID()
should.Equal(t, tc.exp.ok, ok)
should.Equal(t, tc.exp.val, actual)
})
}
}

func TestOrderItemRequestNew_TokenBufferOrDefault(t *testing.T) {
type testCase struct {
name string
Expand Down

0 comments on commit ab95fa1

Please sign in to comment.