nswrap/ast/objc_ivar_decl_test.go
2019-06-11 12:38:22 -04:00

27 lines
630 B
Go

package ast
import (
"testing"
)
func TestObjCIvarDecl(t *testing.T) {
nodes := map[string]testNode{
`0x7fcd103e8270 </usr/include/objc/NSObject.h:56:5, col:11> col:11 isa 'Class':'Class' protected`: testNode{&ObjCIvarDecl{
Addr: 0x7fcd103e8270,
Pos: NewPositionFromString("/usr/include/objc/NSObject.h:56:5, col:11"),
Position2: "col:11",
Name: "isa",
Type: "Class",
Type2: "",
Attr: "protected",
ChildNodes: []Node{},
},
0x7fcd103e8270,
NewPositionFromString("/usr/include/objc/NSObject.h:56:5, col:11"),
[]Node{},
},
}
runNodeTests(t, nodes)
}