-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/qapi-schema: Cover 'Features:' not followed by descriptions
A 'Features:' line without any features is useless, but not an error now. However, a later commit will make it one, because that makes rejecting duplicate 'Features:' easier. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-ID: <20240216145841.2099240-4-armbru@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
- Loading branch information
Markus Armbruster
committed
Feb 26, 2024
1 parent
fc68b9f
commit 0ba2915
Showing
4 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# 'Features:' line not followed by feature descriptions | ||
|
||
## | ||
# @foo: | ||
# | ||
# Features: | ||
# | ||
# not a description | ||
## | ||
{ 'command': 'foo' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module ./builtin | ||
object q_empty | ||
enum QType | ||
prefix QTYPE | ||
member none | ||
member qnull | ||
member qnum | ||
member qstring | ||
member qdict | ||
member qlist | ||
member qbool | ||
module doc-empty-features.json | ||
command foo None -> None | ||
gen=True success_response=True boxed=False oob=False preconfig=False | ||
doc symbol=foo | ||
body= | ||
|
||
section=None | ||
not a description |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters