Change conversion package so that AddKnownTypes takes pointers.

This commit is contained in:
Daniel Smith
2014-09-05 15:20:59 -07:00
parent 2ba6503511
commit 0c6adde92e
3 changed files with 11 additions and 7 deletions

View File

@@ -93,7 +93,7 @@ func TestConverter_CallsRegisteredFunctions(t *testing.T) {
func TestConverter_fuzz(t *testing.T) {
newAnonType := func() interface{} {
return reflect.New(reflect.TypeOf(externalTypeReturn())).Interface()
return reflect.New(reflect.TypeOf(externalTypeReturn()).Elem()).Interface()
}
// Use the same types from the scheme test.
table := []struct {