nswrap/ast/cold_attr_test.go

22 lines
365 B
Go
Raw Normal View History

2021-06-11 11:24:25 -04:00
package ast
import (
"testing"
)
func TestColdAttr(t *testing.T) {
nodes := map[string]testNode{
`0x7fc8fa094558 <col:107>`: testNode{&ColdAttr{
Addr: 0x7fc8fa094558,
Pos: NewPositionFromString("col:107"),
ChildNodes: []Node{},
},
0x7fc8fa094558,
NewPositionFromString("col:107"),
[]Node{},
},
}
runNodeTests(t, nodes)
}