From 4dccbc2bd960f980e82a6e036c400a212bd883ff Mon Sep 17 00:00:00 2001 From: Bodo Junglas Date: Wed, 3 Apr 2024 13:45:09 +0200 Subject: [PATCH] Remove invalid type panic for now (addresses #86) --- arbitrary/gen_for_kind.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/arbitrary/gen_for_kind.go b/arbitrary/gen_for_kind.go index 0912261..c27961c 100644 --- a/arbitrary/gen_for_kind.go +++ b/arbitrary/gen_for_kind.go @@ -337,8 +337,6 @@ func (a *Arbitraries) genForKind(rt reflect.Type) gopter.Gen { keyGen := a.GenForType(rt.Key()) valueGen := a.GenForType(rt.Elem()) return gen.MapOf(keyGen, valueGen) - default: - panic(fmt.Sprintf("Unsupported GenForType: %v", rt.Kind())) } return nil }