diff options
| author | Markus Armbruster | 2019-10-24 13:02:20 +0200 |
|---|---|---|
| committer | Markus Armbruster | 2019-10-29 07:35:16 +0100 |
| commit | 717cfcfae6df46c82b1ae191ec7ae6e0e288c914 (patch) | |
| tree | fa73bcae84d677900b227f6c3fa3f9d5d86a72dc /tests/qapi-schema/doc-bad-event-arg.json | |
| parent | tests/qapi-schema: Demonstrate feature and enum doc comment bugs (diff) | |
| download | qemu-717cfcfae6df46c82b1ae191ec7ae6e0e288c914.tar.gz qemu-717cfcfae6df46c82b1ae191ec7ae6e0e288c914.tar.xz qemu-717cfcfae6df46c82b1ae191ec7ae6e0e288c914.zip | |
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>
Diffstat (limited to 'tests/qapi-schema/doc-bad-event-arg.json')
| -rw-r--r-- | tests/qapi-schema/doc-bad-event-arg.json | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/qapi-schema/doc-bad-event-arg.json b/tests/qapi-schema/doc-bad-event-arg.json new file mode 100644 index 0000000000..80d4e1240b --- /dev/null +++ b/tests/qapi-schema/doc-bad-event-arg.json @@ -0,0 +1,8 @@ +# Arguments listed in the doc comment must exist in the actual schema +# BUG: nonexistent @a is not rejected + +## +# @FOO: +# @a: a +## +{ 'event': 'FOO' } |
