github.com/Konstantin8105/c4go@v0.0.0-20240505174241-768bb1c65a51/ast/returns_twice_attr_test.go (about) 1 package ast 2 3 import ( 4 "testing" 5 ) 6 7 func TestReturnsTwiceAttr(t *testing.T) { 8 nodes := map[string]Node{ 9 `0x7ff8e9091640 <col:7> Implicit`: &ReturnsTwiceAttr{ 10 Addr: 0x7ff8e9091640, 11 Pos: NewPositionFromString("col:7"), 12 ChildNodes: []Node{}, 13 IsInherited: false, 14 IsImplicit: true, 15 }, 16 `0x564a73a5ccc8 <col:16> Inherited Implicit`: &ReturnsTwiceAttr{ 17 Addr: 0x564a73a5ccc8, 18 Pos: NewPositionFromString("col:16"), 19 ChildNodes: []Node{}, 20 IsInherited: true, 21 IsImplicit: true, 22 }, 23 } 24 25 runNodeTests(t, nodes) 26 }