示例#1
0
文件: value_test.go 项目: sdming/kiss
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() })
}
示例#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)
}