mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 14:03:29 +00:00
added initial functions to test the extension
This commit is contained in:
36
src/tests.rs
Normal file
36
src/tests.rs
Normal file
@@ -0,0 +1,36 @@
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::init;
|
||||
|
||||
#[test]
|
||||
fn uuid_is_defined() {
|
||||
let extension = init().testing();
|
||||
let (output, _) = extension.call("uuid", None);
|
||||
assert_eq!(output, output.to_string())
|
||||
}
|
||||
|
||||
mod markers_tests {
|
||||
use crate::init;
|
||||
|
||||
#[test]
|
||||
fn get_is_defined() {
|
||||
let extension = init().testing();
|
||||
let (output, _) = extension.call("markers:get", Some(vec!["".to_string()]));
|
||||
assert_eq!(output, "ERROR: Not implemented yet, ")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn post_is_defined() {
|
||||
let extension = init().testing();
|
||||
let (output, _) = extension.call("markers:post", Some(vec!["".to_string()]));
|
||||
assert_eq!(output, "ERROR: Not implemented yet, ")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn delete_is_defined() {
|
||||
let extension = init().testing();
|
||||
let (output, _) = extension.call("markers:delete", Some(vec!["".to_string()]));
|
||||
assert_eq!(output, "ERROR: Not implemented yet, ")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user