Skip to content

Commit

Permalink
refactor: reflect/reflectutil: update tests to exclude `currencyuti…
Browse files Browse the repository at this point in the history
…l.Amount`
  • Loading branch information
grokify committed Nov 26, 2023
1 parent c1b24a1 commit e7f1b41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions reflect/reflectutil/reflectutil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/url"
"testing"

"github.com/grokify/mogo/data/currencyutil"
"github.com/grokify/mogo/time/timeutil"
)

var nameOfTests = []struct {
Expand All @@ -20,8 +20,8 @@ var nameOfTests = []struct {
{http.Client{}, "Client", "net/http.Client"},
{url.Values{}, "Values", "net/url.Values"},
{&url.Values{}, "*Values", "*net/url.Values"},
{currencyutil.Amount{}, "Amount", "github.com/grokify/mogo/data/currencyutil.Amount"},
{&currencyutil.Amount{}, "*Amount", "*github.com/grokify/mogo/data/currencyutil.Amount"},
{timeutil.TimeMore{}, "TimeMore", "github.com/grokify/mogo/time/timeutil.TimeMore"},
{&timeutil.TimeMore{}, "*TimeMore", "*github.com/grokify/mogo/time/timeutil.TimeMore"},
}

// TestNameOf ensures `reflectutil.NameOf()` returns correct values.
Expand Down

0 comments on commit e7f1b41

Please sign in to comment.