nswrap/ast/function_proto_type_test.go

23 lines
417 B
Go

package ast
import (
"testing"
)
func TestFunctionProtoType(t *testing.T) {
nodes := map[string]testNode{
`0x7fa3b88bbb30 'struct _opaque_pthread_t *' foo`: testNode{&FunctionProtoType{
Addr: 0x7fa3b88bbb30,
Type: "struct _opaque_pthread_t *",
Kind: "foo",
ChildNodes: []Node{},
},
0x7fa3b88bbb30,
NewPositionFromString(""),
[]Node{},
},
}
runNodeTests(t, nodes)
}