qemu-patch-raspberry4/tests/qapi-schema/doc-bad-boxed-command-arg.json
Markus Armbruster 717cfcfae6 tests/qapi-schema: Demonstrate command and event doc comment bugs
Add negative tests doc-bad-boxed-command-arg and doc-bad-event-arg to
cover boxed and no arguments.  They demonstrate insufficient doc
comment checking.

Update positive test doc-good to cover boxed event arguments.  It
demonstrates the generated doc comment misses arguments.

These bugs will be fixed later in this series.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20191024110237.30963-3-armbru@redhat.com>
2019-10-29 07:35:16 +01:00

16 lines
252 B
JSON

# Boxed arguments are not to be documented with the command
# BUG: not rejected
##
# @Args:
# @a: an argument
##
{ 'struct': 'Args', 'data': { 'a': 'int' } }
##
# @cmd-boxed:
# @a: bogus
##
{ 'command': 'cmd-boxed', 'boxed': true,
'data': 'Args' }