nswrap/ast/malloc_attr_test.go

18 lines
308 B
Go
Raw Normal View History

2019-04-09 11:52:21 -04:00
package ast
import (
"testing"
)
func TestMallocAttr(t *testing.T) {
nodes := map[string]Node{
`0x7fc0a69091d1 <line:11:7, line:18:7>`: &MallocAttr{
Addr: 0x7fc0a69091d1,
Pos: NewPositionFromString("line:11:7, line:18:7"),
ChildNodes: []Node{},
},
}
runNodeTests(t, nodes)
}