api-macro: some more test code

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-11-28 13:49:14 +01:00
parent 22581b382c
commit 6afad53466

View File

@ -37,6 +37,7 @@ pub enum Selection {
input: { input: {
properties: { properties: {
arg: { type: OkString }, arg: { type: OkString },
selection: { type: Selection },
} }
}, },
returns: { type: Boolean }, returns: { type: Boolean },
@ -44,7 +45,8 @@ pub enum Selection {
/// Check a string. /// Check a string.
/// ///
/// Returns: Whether the string was "ok". /// Returns: Whether the string was "ok".
pub fn string_check(arg: Value) -> Result<bool, Error> { pub fn string_check(arg: Value, selection: Selection) -> Result<bool, Error> {
let _ = arg; let _ = arg;
let _ = selection;
panic!("body") panic!("body")
} }