nswrap/ast/field_test.go

23 lines
496 B
Go
Raw Normal View History

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