2020-07-18 11:01:51 +03:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
mod channel;
|
|
|
|
mod commands;
|
2020-07-19 10:17:53 +03:00
|
|
|
pub mod result;
|
2020-07-18 11:01:51 +03:00
|
|
|
|
|
|
|
pub use channel::*;
|
|
|
|
pub use commands::*;
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
extern crate lazy_static;
|
|
|
|
extern crate regex;
|
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
mod tests {
|
|
|
|
use crate::channel::ChannelMode;
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn format_channel_enums() {
|
|
|
|
assert_eq!(format!("{}", ChannelMode::Search), String::from("search"));
|
|
|
|
assert_eq!(format!("{}", ChannelMode::Ingest), String::from("ingest"));
|
|
|
|
assert_eq!(format!("{}", ChannelMode::Control), String::from("control"));
|
|
|
|
}
|
|
|
|
|
|
|
|
//TODO: write tests with sonic server
|
|
|
|
}
|