github.com/Konstantin8105/c4go@v0.0.0-20240505174241-768bb1c65a51/ast/pure_attr_test.go (about)

     1  package ast
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func TestPureAttr(t *testing.T) {
     8  	nodes := map[string]Node{
     9  		`0x7fe9eb899198 <col:1> Implicit`: &PureAttr{
    10  			Addr:        0x7fe9eb899198,
    11  			Pos:         NewPositionFromString("col:1"),
    12  			IsImplicit:  true,
    13  			IsInherited: false,
    14  			ChildNodes:  []Node{},
    15  		},
    16  		`0x7fe8d60992a0 <col:1> Inherited Implicit`: &PureAttr{
    17  			Addr:        0x7fe8d60992a0,
    18  			Pos:         NewPositionFromString("col:1"),
    19  			IsImplicit:  true,
    20  			IsInherited: true,
    21  			ChildNodes:  []Node{},
    22  		},
    23  	}
    24  
    25  	runNodeTests(t, nodes)
    26  }