nswrap/ast/no_inline_attr_test.go
2019-06-11 12:38:22 -04:00

22 lines
391 B
Go

package ast
import (
"testing"
)
func TestNoInlineAttr(t *testing.T) {
nodes := map[string]testNode{
`0x7fc02a8a6730 <line:24619:23>`: testNode{&NoInlineAttr{
Addr: 0x7fc02a8a6730,
Pos: NewPositionFromString("line:24619:23"),
ChildNodes: []Node{},
},
0x7fc02a8a6730,
NewPositionFromString("line:24619:23"),
[]Node{},
},
}
runNodeTests(t, nodes)
}