2 # Positive QAPI doc comment tests
4 { 'pragma': { 'doc-required': true } }
11 # *strong* _with emphasis_
34 # Since: the first age
37 # 1. Lorem ipsum dolor sit amet
39 # 2. Ut enim ad minim veniam
41 # Duis aute irure dolor
54 # == Produces *invalid* texinfo
55 # @one: The _one_ {and only}
57 # @two is undocumented
59 { 'enum': 'Enum', 'data': [ 'one', 'two' ] }
66 { 'struct': 'Base', 'data': { 'base1': 'Enum' } }
72 # Another paragraph (but no @var: line)
74 { 'struct': 'Variant1', 'data': { 'var1': 'str' } }
79 { 'struct': 'Variant2', 'data': {} }
86 'discriminator': 'base1',
87 'data': { 'one': 'Variant1', 'two': 'Variant2' } }
92 { 'union': 'SugaredUnion',
93 'data': { 'one': 'Variant1', 'two': 'Variant2' } }
96 # == Another subsection
101 # @arg1: the first argument
105 # Note: @arg3 is undocumented
109 # - Lorem ipsum dolor sit amet
110 # - Ut enim ad minim veniam
112 # Duis aute irure dolor
123 'data': { 'arg1': 'int', '*arg2': 'str', 'arg3': 'bool' },
124 'returns': 'Object' }
128 # If you're bored enough to read this, go see a video of boxed cats
135 { 'command': 'cmd-boxed', 'boxed': true,