nswrap/ast/objc_object_pointer_type_te...

40 lines
846 B
Go
Raw Normal View History

2019-05-31 10:21:04 -04:00
package ast
import (
"testing"
)
func TestObjCObjectPointerType(t *testing.T) {
2019-06-04 00:14:04 -04:00
nodes := map[string]testNode{
`0x10c101ab0 'NSObject<OS_xpc_object> *'`: testNode{&ObjCObjectPointerType{
2019-05-31 10:21:04 -04:00
Addr: 0x10c101ab0,
Type: `NSObject<OS_xpc_object> *`,
ChildNodes: []Node{},
},
0x10c101ab0,
NewPositionFromString(""),
[]Node{},
2019-06-04 00:14:04 -04:00
},
`0x7faa18805fc0 'id'`: testNode{&ObjCObjectPointerType{
2019-05-31 10:21:04 -04:00
Addr: 0x7faa18805fc0,
Type: `id`,
ChildNodes: []Node{},
},
0x7faa18805fc0,
NewPositionFromString(""),
[]Node{},
2019-06-04 00:14:04 -04:00
},
`0x7fca45a08a60 'NSAppleEventDescriptor *'`: testNode{&ObjCObjectPointerType{
2019-05-31 10:21:04 -04:00
Addr: 0x7fca45a08a60,
Type: `NSAppleEventDescriptor *`,
ChildNodes: []Node{},
},
0x7fca45a08a60,
NewPositionFromString(""),
[]Node{},
2019-06-04 00:14:04 -04:00
},
2019-05-31 10:21:04 -04:00
}
runNodeTests(t, nodes)
}