package ast import ( "testing" ) func TestAsmLabelAttr(t *testing.T) { nodes := map[string]Node{ `0x7ff26d8224e8 "_fopen"`: &AsmLabelAttr{ Addr: 0x7ff26d8224e8, Pos: NewPositionFromString("/usr/include/sys/cdefs.h:569:36"), Inherited: false, FunctionName: "_fopen", ChildNodes: []Node{}, }, `0x7fd55a169318 Inherited "_popen"`: &AsmLabelAttr{ Addr: 0x7fd55a169318, Pos: NewPositionFromString("/usr/include/stdio.h:325:47"), Inherited: true, FunctionName: "_popen", ChildNodes: []Node{}, }, } runNodeTests(t, nodes) }