Skip to content

Commit

Permalink
test: add a more complex example
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgtaylor committed Apr 10, 2024
1 parent 0f52cd4 commit 939c2c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func TestDefaultSchemaNamer(t *testing.T) {
{Output[EmbeddedTwo[[]time.Time, **url.URL]]{}, "OutputEmbeddedTwoListTimeURL", ""},
{Renamed{}, "Renamed", ""},
{struct{}{}, "SomeGenericThing", "Some[pkg.Generic]Thing"},
{struct{}{}, "Type1Type2Type3", "pkg1.Type1[path/to/pkg2.Type2]pkg3.Type3"},
} {
t.Run(example.name, func(t *testing.T) {
name := DefaultSchemaNamer(reflect.TypeOf(example.typ), example.hint)
Expand Down

0 comments on commit 939c2c7

Please sign in to comment.