From bead1e6b13cd5d6fb0fbf0c074f9b66c0638a7fe Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 2 Dec 2019 10:55:28 +0100 Subject: [PATCH] api-macro: add test with no parameters Signed-off-by: Wolfgang Bumiller --- proxmox-api-macro/tests/api1.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/proxmox-api-macro/tests/api1.rs b/proxmox-api-macro/tests/api1.rs index cd988855..9770abd7 100644 --- a/proxmox-api-macro/tests/api1.rs +++ b/proxmox-api-macro/tests/api1.rs @@ -100,3 +100,14 @@ pub fn some_call(verbose: bool) -> Result<(), Error> { let _ = verbose; Ok(()) } + +#[api( + input: { + properties: {} + }, +)] +/// Basic function +pub fn basic_function() -> Result<(), Error> { + let _ = verbose; + Ok(()) +}