Lines Matching +full:get +full:- +full:secret +full:- +full:value
6 fn non_cs() -> Result<(), Box<dyn Error>> { in non_cs()
13 KFC = the secret herb is orega- in non_cs()
14 colon:value after colon in non_cs()
17 Password=[in-brackets] in non_cs()
25 Int = -31415 in non_cs()
33 config.get("DEFAULT", "defaultvalues").unwrap(), in non_cs()
38 config.get("DEFAULT", "defaultvalues").unwrap(), in non_cs()
48 assert_eq!(config.get("DEFAULT", "defaultvalues"), None); in non_cs()
50 config.get("topsecret", "KFC").unwrap(), in non_cs()
51 "the secret herb is orega-" in non_cs()
53 assert_eq!(config.get("topsecret", "Empty string").unwrap(), ""); in non_cs()
54 assert_eq!(config.get("topsecret", "None string"), None); in non_cs()
55 assert_eq!(config.get("spacing", "indented").unwrap(), "indented"); in non_cs()
57 config.get("spacing", "not indented").unwrap(), in non_cs()
61 config.get("topsecret", "colon").unwrap(), in non_cs()
62 "value after colon" in non_cs()
66 assert_eq!(config.getint("values", "Int")?.unwrap(), -31415); in non_cs()
76 "the secret herb is orega-" in non_cs()
88 assert_eq!(config2.get("default", "defaultvalues"), None); in non_cs()
90 assert_eq!(config2.get("default", "nope"), None); in non_cs()
107 config.get("default", "defaultvalues").unwrap(), in non_cs()
111 config.get("topsecret", "KFC").unwrap(), in non_cs()
112 "the secret herb is orega-" in non_cs()
121 config3.get("default", "defaultvalues").unwrap(), in non_cs()
124 assert_eq!(config3.get("topsecret", "KFC").unwrap(), "redacted"); in non_cs()
125 // spacing -> indented exists in tests/test.ini, but not tests/test_more.ini in non_cs()
126 assert_eq!(config3.get("spacing", "indented").unwrap(), "indented"); in non_cs()
134 fn cs() -> Result<(), Box<dyn Error>> { in cs()
141 KFC = the secret herb is orega- in cs()
142 colon:value after colon in cs()
145 Password=[in-brackets] in cs()
153 Int = -31415 in cs()
161 config.get("default", "defaultvalues").unwrap(), in cs()
166 config.get("default", "defaultvalues").unwrap(), in cs()
176 assert_eq!(config.get("default", "defaultvalues"), None); in cs()
178 config.get("topsecret", "KFC").unwrap(), in cs()
179 "the secret herb is orega-" in cs()
181 assert_eq!(config.get("topsecret", "Empty string").unwrap(), ""); in cs()
182 assert_eq!(config.get("topsecret", "None string"), None); in cs()
183 assert_eq!(config.get("spacing", "indented").unwrap(), "indented"); in cs()
185 config.get("spacing", "not indented").unwrap(), in cs()
189 config.get("topsecret", "colon").unwrap(), in cs()
190 "value after colon" in cs()
194 assert_eq!(config.getint("values", "Int")?.unwrap(), -31415); in cs()
204 "the secret herb is orega-" in cs()
216 assert_eq!(config2.get("default", "defaultvalues"), None); in cs()
218 assert_eq!(config2.get("default", "nope"), None); in cs()
236 fn sort_on_write() -> Result<(), Box<dyn Error>> { in sort_on_write()
244 KFC=the secret herb is orega- in sort_on_write()
245 colon=value after colon in sort_on_write()
248 Password=[in-brackets] in sort_on_write()
255 Int=-31415 in sort_on_write()
266 fn pretty_writes_result_is_formatted_correctly() -> Result<(), Box<dyn Error>> { in pretty_writes_result_is_formatted_correctly()
271 KFC=the secret herb is orega- in pretty_writes_result_is_formatted_correctly()
274 Password=[in-brackets] in pretty_writes_result_is_formatted_correctly()
279 a single value in pretty_writes_result_is_formatted_correctly()
280 Key3: another value in pretty_writes_result_is_formatted_correctly()
298 KFC = the secret herb is orega- in pretty_writes_result_is_formatted_correctly()
301 Password = [in-brackets] in pretty_writes_result_is_formatted_correctly()
307 a single value in pretty_writes_result_is_formatted_correctly()
308 Key3 = another value in pretty_writes_result_is_formatted_correctly()
317 #[cfg(feature = "async-std")]
319 fn pretty_write_result_is_formatted_correctly() -> Result<(), Box<dyn Error>> { in pretty_write_result_is_formatted_correctly()
324 KFC=the secret herb is orega- in pretty_write_result_is_formatted_correctly()
327 Password=[in-brackets] in pretty_write_result_is_formatted_correctly()
332 a single value in pretty_write_result_is_formatted_correctly()
333 Key3: another value in pretty_write_result_is_formatted_correctly()
354 KFC = the secret herb is orega- in pretty_write_result_is_formatted_correctly()
357 Password = [in-brackets] in pretty_write_result_is_formatted_correctly()
363 a single value in pretty_write_result_is_formatted_correctly()
364 Key3 = another value in pretty_write_result_is_formatted_correctly()
373 #[cfg(feature = "async-std")]
375 async fn async_pretty_print_result_is_formatted_correctly() -> Result<(), Box<dyn Error>> { in async_pretty_print_result_is_formatted_correctly()
380 KFC=the secret herb is orega- in async_pretty_print_result_is_formatted_correctly()
383 Password=[in-brackets] in async_pretty_print_result_is_formatted_correctly()
388 a single value in async_pretty_print_result_is_formatted_correctly()
389 Key3: another value in async_pretty_print_result_is_formatted_correctly()
413 KFC = the secret herb is orega- in async_pretty_print_result_is_formatted_correctly()
416 Password = [in-brackets] in async_pretty_print_result_is_formatted_correctly()
422 a single value in async_pretty_print_result_is_formatted_correctly()
423 Key3 = another value in async_pretty_print_result_is_formatted_correctly()
431 #[cfg(feature = "async-std")]
433 async fn async_load_write() -> Result<(), Box<dyn Error>> { in async_load_write()
436 KFC = the secret herb is orega- in async_load_write()
437 colon:value after colon in async_load_write()
440 Password=[in-brackets] in async_load_write()
448 Int = -31415 in async_load_write()
475 #[cfg(feature = "async-std")]
477 async fn async_load_and_append() -> Result<(), Box<dyn Error>> { in async_load_and_append()
495 fn multiline_off() -> Result<(), Box<dyn Error>> { in multiline_off()
501 let section = map.get("Section").unwrap(); in multiline_off()
503 assert_eq!(config.get("Section", "Key1").unwrap(), "Value1"); in multiline_off()
504 assert_eq!(config.get("Section", "Key2").unwrap(), "Value Two"); in multiline_off()
505 assert_eq!(config.get("Section", "Key3").unwrap(), "this is a haiku"); in multiline_off()
507 assert!(section.contains_key("a single value")); in multiline_off()
509 assert_eq!(config.get("Section", "Key4").unwrap(), "Four"); in multiline_off()
515 Key2=Value Two in multiline_off()
518 a single value in multiline_off()
528 fn multiline_on() -> Result<(), Box<dyn Error>> { in multiline_on()
533 assert_eq!(config.get("Section", "Key1").unwrap(), "Value1"); in multiline_on()
534 assert_eq!(config.get("Section", "Key2").unwrap(), "Value Two"); in multiline_on()
536 config.get("Section", "Key3").unwrap(), in multiline_on()
537 "this is a haiku\nspread across separate lines\na single value" in multiline_on()
539 assert_eq!(config.get("Section", "Key4").unwrap(), "Four"); in multiline_on()
545 Key2=Value Two in multiline_on()
548 a single value in multiline_on()