2019-05-31 10:21:04 -04:00
|
|
|
package ast
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestObjCInterface(t *testing.T) {
|
2019-06-04 00:14:04 -04:00
|
|
|
i := 1
|
2019-05-31 10:21:04 -04:00
|
|
|
runNodeTest(t,
|
|
|
|
Parse(`ObjCInterface 0x7f84d10dc1d0 'NSObject'`),
|
2019-06-04 00:14:04 -04:00
|
|
|
testNode{&ObjCInterface{
|
2019-05-31 10:21:04 -04:00
|
|
|
Addr: 0x7f84d10dc1d0,
|
|
|
|
Name: `NSObject`,
|
|
|
|
Super: false,
|
|
|
|
ChildNodes: []Node{},
|
|
|
|
},
|
2019-06-11 12:38:22 -04:00
|
|
|
0x7f84d10dc1d0,
|
|
|
|
NewPositionFromString(""),
|
|
|
|
[]Node{},
|
2019-06-04 00:14:04 -04:00
|
|
|
},
|
|
|
|
&i,
|
2019-05-31 10:21:04 -04:00
|
|
|
)
|
|
|
|
runNodeTest(t,
|
|
|
|
Parse(`super ObjCInterface 0x7f84d10dc1d0 'NSObject'`),
|
2019-06-04 00:14:04 -04:00
|
|
|
testNode{&ObjCInterface{
|
2019-05-31 10:21:04 -04:00
|
|
|
Addr: 0x7f84d10dc1d0,
|
|
|
|
Name: `NSObject`,
|
|
|
|
Super: true,
|
|
|
|
ChildNodes: []Node{},
|
|
|
|
},
|
2019-06-11 12:38:22 -04:00
|
|
|
0x7f84d10dc1d0,
|
|
|
|
NewPositionFromString(""),
|
|
|
|
[]Node{},
|
2019-06-04 00:14:04 -04:00
|
|
|
},
|
|
|
|
&i,
|
2019-05-31 10:21:04 -04:00
|
|
|
)
|
|
|
|
}
|