25 lines
421 B
Go
25 lines
421 B
Go
package ast
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestObjCObjectType(t *testing.T) {
|
|
nodes := map[string]Node{
|
|
`0x10c101ab0 'NSObject<OS_xpc_object>'`:
|
|
&ObjCObjectType{
|
|
Addr: 0x10c101ab0,
|
|
Type: `NSObject<OS_xpc_object>`,
|
|
ChildNodes: []Node{},
|
|
},
|
|
`0x7faa18805fc0 'id'`:
|
|
&ObjCObjectType{
|
|
Addr: 0x7faa18805fc0,
|
|
Type: `id`,
|
|
ChildNodes: []Node{},
|
|
},
|
|
}
|
|
|
|
runNodeTests(t, nodes)
|
|
}
|