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

27 lines
634 B
Go

package ast
import (
"testing"
)
func TestVisibilityAttr(t *testing.T) {
nodes := map[string]Node{
`0x55c49d8dd1d8 <col:16, col:36> Default`: &VisibilityAttr{
Addr: 0x55c49d8dd1d8,
Pos: NewPositionFromString("col:16, col:36"),
ChildNodes: []Node{},
IsInherited: false,
IsDefault: true,
},
`0x7f8e7b00bb80 </cmark/src/cmark.h:497:16, col:36> Inherited Default`: &VisibilityAttr{
Addr: 0x7f8e7b00bb80,
Pos: NewPositionFromString("/cmark/src/cmark.h:497:16, col:36"),
ChildNodes: []Node{},
IsInherited: true,
IsDefault: true,
},
}
runNodeTests(t, nodes)
}