Example #1
0
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() })
}
Example #2
0
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)
}