Fix outdated comments and ident naming

Signed-off-by: Sayan Nandan <nandansayan@outlook.com>
next
Sayan Nandan 4 years ago
parent 8808ab957d
commit e31c08dbb0
No known key found for this signature in database
GPG Key ID: C31EFD7DDA12AEE0

@ -8,7 +8,7 @@ args:
required: false required: false
long: withconfig long: withconfig
value_name: cfgfile value_name: cfgfile
help: Sets a configuration file to start sdb help: Sets a configuration file to start skyd
takes_value: true takes_value: true
- restore: - restore:
short: r short: r

@ -648,24 +648,24 @@ mod tests {
#[test] #[test]
fn test_config_file_ok() { fn test_config_file_ok() {
let file = get_toml_from_examples_dir("sdb.toml".to_owned()).unwrap(); let file = get_toml_from_examples_dir("skyd.toml".to_owned()).unwrap();
let cfg = ParsedConfig::new_from_toml_str(file).unwrap(); let cfg = ParsedConfig::new_from_toml_str(file).unwrap();
assert_eq!(cfg, ParsedConfig::default()); assert_eq!(cfg, ParsedConfig::default());
} }
#[test] #[test]
fn test_config_file_err() { fn test_config_file_err() {
let file = get_toml_from_examples_dir("sdb.toml".to_owned()).unwrap(); let file = get_toml_from_examples_dir("skyd.toml".to_owned()).unwrap();
let cfg = ParsedConfig::new_from_file(file); let cfg = ParsedConfig::new_from_file(file);
assert!(cfg.is_err()); assert!(cfg.is_err());
} }
#[test] #[test]
fn test_args() { fn test_args() {
let cmdlineargs = vec!["sdb", "--withconfig", "../examples/config-files/sdb.toml"]; let cmdlineargs = vec!["skyd", "--withconfig", "../examples/config-files/skyd.toml"];
let cfg_layout = load_yaml!("../cli.yml"); let cfg_layout = load_yaml!("../cli.yml");
let matches = App::from_yaml(cfg_layout).get_matches_from(cmdlineargs); let matches = App::from_yaml(cfg_layout).get_matches_from(cmdlineargs);
let filename = matches.value_of("config").unwrap(); let filename = matches.value_of("config").unwrap();
assert_eq!("../examples/config-files/sdb.toml", filename); assert_eq!("../examples/config-files/skyd.toml", filename);
let cfg = let cfg =
ParsedConfig::new_from_toml_str(std::fs::read_to_string(filename).unwrap()).unwrap(); ParsedConfig::new_from_toml_str(std::fs::read_to_string(filename).unwrap()).unwrap();
assert_eq!(cfg, ParsedConfig::default()); assert_eq!(cfg, ParsedConfig::default());

@ -26,7 +26,7 @@
//! # The Key/Value Engine //! # The Key/Value Engine
//! This is Skytable's K/V engine. It contains utilities to interface with //! This is Skytable's K/V engine. It contains utilities to interface with
//! sdb's K/V store //! Skytable's K/V store
pub mod dbsize; pub mod dbsize;
pub mod del; pub mod del;

@ -26,7 +26,7 @@
//! # Skytable //! # Skytable
//! //!
//! The `sdb` crate (or the `server` folder) is Skytable's database server and maybe //! The `skyd` crate (or the `server` folder) is Skytable's database server and maybe
//! is the most important part of the project. There are several modules within this crate; see //! is the most important part of the project. There are several modules within this crate; see
//! the modules for their respective documentation. //! the modules for their respective documentation.

Loading…
Cancel
Save