23 lines
480 B
Go
23 lines
480 B
Go
|
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)
|
||
|
}
|