nswrap/ast/objc_protocol_decl_test.go
2019-05-31 10:21:04 -04:00

29 lines
815 B
Go

package ast
import (
"testing"
)
func TestObjCProtocolDecl(t *testing.T) {
nodes := map[string]Node{
`0x10a9da630 <line:22:1, col:11> col:11 NSBrowserDelegate`:
&ObjCProtocolDecl{
Addr: 0x10a9da630,
Pos: NewPositionFromString("line:22:1, col:11"),
Position2: "",
Name: "NSBrowserDelegate",
ChildNodes: []Node{},
},
`0x10c37fc70 </System/Library/Frameworks/AppKit.framework/Headers/NSPrintPanel.h:58:1, line:70:2> line:58:11 NSPrintPanelAccessorizing`:
&ObjCProtocolDecl{
Addr: 0x10c37fc70,
Pos: NewPositionFromString("/System/Library/Frameworks/AppKit.framework/Headers/NSPrintPanel.h:58:1, line:70:2"),
Position2: "",
Name: "NSPrintPanelAccessorizing",
ChildNodes: []Node{},
},
}
runNodeTests(t, nodes)
}