2019-06-04 00:14:04 -04:00
|
|
|
package ast
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestNSErrorDomainAttr(t *testing.T) {
|
|
|
|
nodes := map[string]testNode{
|
2019-06-11 12:38:22 -04:00
|
|
|
`0x7fc0a69091d1 <line:11:7, line:18:7> content`: testNode{&NSErrorDomainAttr{
|
2019-06-04 00:14:04 -04:00
|
|
|
Addr: 0x7fc0a69091d1,
|
|
|
|
Pos: NewPositionFromString("line:11:7, line:18:7"),
|
|
|
|
Content: " content",
|
|
|
|
ChildNodes: []Node{},
|
|
|
|
},
|
2019-06-11 12:38:22 -04:00
|
|
|
0x7fc0a69091d1,
|
|
|
|
NewPositionFromString("line:11:7, line:18:7"),
|
|
|
|
[]Node{},
|
2019-06-04 00:14:04 -04:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
runNodeTests(t, nodes)
|
|
|
|
}
|