nswrap/ast/objc_method_test.go

27 lines
429 B
Go
Raw Normal View History

2019-05-31 10:21:04 -04:00
package ast
import (
"testing"
)
func TestObjCMethod(t *testing.T) {
runNodeTest(t,
Parse(`ObjCMethod 0x7f84d10dc1d0 'isValid'`),
&ObjCMethod{
Addr: 0x7f84d10dc1d0,
Name: `isValid`,
ChildNodes: []Node{},
},
1,
)
runNodeTest(t,
Parse(`getter ObjCMethod 0x7f84d10dc1d0 'isValid'`),
&ObjCMethod{
Addr: 0x7f84d10dc1d0,
Name: `isValid`,
ChildNodes: []Node{},
},
2,
)
}