Searched refs:inifile (Results 1 – 1 of 1) sorted by relevance
157 let mut inifile = IniFile::new(filepath.clone()); in test_read() localVariable158 inifile.read().unwrap(); in test_read()160 assert!(!inifile.contains_key("unknown-key")); in test_read()161 assert!(inifile.contains_key("port"), "Fail in test case: {test_case}"); in test_read()162 assert_eq!(inifile.get("port").unwrap(), "123"); in test_read()163 assert_eq!(inifile.get("unknown-key"), None); in test_read()184 let mut inifile = IniFile::new(filepath.clone()); in test_read_no_newline() localVariable185 inifile.read().unwrap(); in test_read_no_newline()187 assert!(!inifile.contains_key("unknown-key")); in test_read_no_newline()188 assert!(inifile.contains_key("port")); in test_read_no_newline()[all …]