package ast import ( "testing" ) func TestAttributedType(t *testing.T) { nodes := map[string]Node{ `0x10c0d6770 'CVDisplayLinkRef _Nonnull' sugar`: &AttributedType{ Addr: 0x10c0d6770, Type: `CVDisplayLinkRef _Nonnull`, Sugar: true, ChildNodes: []Node{}, }, `0x10c0d68b0 'const CVTimeStamp * _Nonnull' sugar`: &AttributedType{ Addr: 0x10c0d68b0, Type: `const CVTimeStamp * _Nonnull`, Sugar: true, ChildNodes: []Node{}, }, `0x10c0d6ab0 'CVOptionFlags * _Nonnull' sugar`: &AttributedType{ Addr: 0x10c0d6ab0, Type: `CVOptionFlags * _Nonnull`, Sugar: true, ChildNodes: []Node{}, }, `0x10c0fc7d0 'CVPixelBufferRef _Nonnull' sugar`: &AttributedType{ Addr: 0x10c0fc7d0, Type: `CVPixelBufferRef _Nonnull`, Sugar: true, ChildNodes: []Node{}, }, `0x7faa1906d680 'NSError * _Nullable' sugar`: &AttributedType{ Addr: 0x7faa1906d680, Type: `NSError * _Nullable`, Sugar: true, ChildNodes: []Node{}, }, `0x7faa19085760 'id _Nullable' sugar`: &AttributedType{ Addr: 0x7faa19085760, Type: `id _Nullable`, Sugar: true, ChildNodes: []Node{}, }, `0x7faa19085840 'NSError * _Null_unspecified' sugar`: &AttributedType{ Addr: 0x7faa19085840, Type: `NSError * _Null_unspecified`, Sugar: true, ChildNodes: []Node{}, }, } runNodeTests(t, nodes) }