nswrap/ast/field_test.go
2019-04-09 11:52:21 -04:00

19 lines
421 B
Go

package ast
import (
"testing"
)
func TestField(t *testing.T) {
nodes := map[string]Node{
`0x44159a0 '' 'union sigcontext::(anonymous at /usr/include/x86_64-linux-gnu/bits/sigcontext.h:165:17)'`: &Field{
Addr: 0x44159a0,
String1: "",
String2: "union sigcontext::(anonymous at /usr/include/x86_64-linux-gnu/bits/sigcontext.h:165:17)",
ChildNodes: []Node{},
},
}
runNodeTests(t, nodes)
}