func TestValueIsSimple(t *testing.T) { data := newSimpleType() data.A_interface = "interface" fields := gotype.Fields(reflect.ValueOf(data).Type()) testFieldsValue(t, reflect.ValueOf(data), fields, func(v gotype.Value) bool { return v.IsSimple() }) }
func TestIsSimple(t *testing.T) { data := newSimpleType() data.A_interface = "interface" fields := gotype.Fields(reflect.ValueOf(data).Type()) testFieldsKind(t, reflect.ValueOf(data), fields, gotype.IsSimple) }