nswrap/ast/warn_unused_result_attr_test.go

23 lines
480 B
Go
Raw Normal View History

2019-04-09 11:52:21 -04:00
package ast
import (
"testing"
)
func TestWarnUnusedResultAttr(t *testing.T) {
nodes := map[string]Node{
`0x7fa1d704d420 <col:60> warn_unused_result`: &WarnUnusedResultAttr{
Addr: 0x7fa1d704d420,
Pos: NewPositionFromString("col:60"),
ChildNodes: []Node{},
},
`0x1fac810 <line:481:52>`: &WarnUnusedResultAttr{
Addr: 0x1fac810,
Pos: NewPositionFromString("line:481:52"),
ChildNodes: []Node{},
},
}
runNodeTests(t, nodes)
}