summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/doc-good.txt
diff options
context:
space:
mode:
authorMarkus Armbruster2021-09-17 16:31:31 +0200
committerMarkus Armbruster2021-09-27 08:23:25 +0200
commit76432d988b67d95006d0aa66dce2aa5999868d29 (patch)
treed886a9906a8b3dea931da214cc9f08ffa45f56b8 /tests/qapi-schema/doc-good.txt
parenttests/qapi-schema: Drop simple union __org.qemu_x-Union1 (diff)
downloadqemu-76432d988b67d95006d0aa66dce2aa5999868d29.tar.gz
qemu-76432d988b67d95006d0aa66dce2aa5999868d29.tar.xz
qemu-76432d988b67d95006d0aa66dce2aa5999868d29.zip
tests/qapi-schema: Purge simple unions from tests
Drop tests that are specifically about simple unions: * SugaredUnion in doc-good: flat unions are covered by @Object. * union-branch-case and union-clash-branches: branch naming for flat unions is enforced for the tag enum instead, which is covered by enum-member-case and enum-clash-member. * union-empty: empty flat unions are covered by flat-union-empty. Rewrite the remainder to use flat unions: args-union, bad-base, flat-union-base-union, union-branch-invalid-dict, union-unknown. Except drop union-optional-branch. because converting this one is not worth the trouble; we don't explicitly check names beginning with '*' in other places, either. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20210917143134.412106-21-armbru@redhat.com>
Diffstat (limited to 'tests/qapi-schema/doc-good.txt')
-rw-r--r--tests/qapi-schema/doc-good.txt20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/qapi-schema/doc-good.txt b/tests/qapi-schema/doc-good.txt
index 0c59d75964..701402ee5e 100644
--- a/tests/qapi-schema/doc-good.txt
+++ b/tests/qapi-schema/doc-good.txt
@@ -130,26 +130,6 @@ Features
a feature
-"SugaredUnion" (Object)
------------------------
-
-
-Members
-~~~~~~~
-
-"type"
- One of "one", "two"
-
-"data": "Variant1" when "type" is ""one""
-"data": "Variant2" when "type" is ""two"" (**If: **"IFTWO")
-
-Features
-~~~~~~~~
-
-"union-feat2"
- a feature
-
-
"Alternate" (Alternate)
-----------------------