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

     1  package ast
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func TestCallExpr(t *testing.T) {
     8  	nodes := map[string]Node{
     9  		`0x7f9bf3033240 <col:11, col:25> 'int'`: &CallExpr{
    10  			Addr:       0x7f9bf3033240,
    11  			Pos:        NewPositionFromString("col:11, col:25"),
    12  			Type:       "int",
    13  			ChildNodes: []Node{},
    14  		},
    15  		`0x7f9bf3035c20 <line:7:4, col:64> 'int'`: &CallExpr{
    16  			Addr:       0x7f9bf3035c20,
    17  			Pos:        NewPositionFromString("line:7:4, col:64"),
    18  			Type:       "int",
    19  			ChildNodes: []Node{},
    20  		},
    21  		`0x7f9bf3035c20 <line:7:4, col:64> 'intr':'enum rrr'`: &CallExpr{
    22  			Addr:       0x7f9bf3035c20,
    23  			Pos:        NewPositionFromString("line:7:4, col:64"),
    24  			Type:       "intr",
    25  			Type2:      "enum rrr",
    26  			ChildNodes: []Node{},
    27  		},
    28  	}
    29  
    30  	runNodeTests(t, nodes)
    31  }