This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch config-refactor
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
The following commit(s) were added to refs/heads/config-refactor by this push:
new fd8d639b2 Add test case
fd8d639b2 is described below
commit fd8d639b21d3a8cddae4d531fab44b1c35f93bdd
Author: Xuanwo <[email protected]>
AuthorDate: Mon Nov 6 21:08:59 2023 +0800
Add test case
Signed-off-by: Xuanwo <[email protected]>
---
core/src/raw/serde_util.rs | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/core/src/raw/serde_util.rs b/core/src/raw/serde_util.rs
index e326c99a7..5edde1dde 100644
--- a/core/src/raw/serde_util.rs
+++ b/core/src/raw/serde_util.rs
@@ -313,6 +313,8 @@ mod tests {
bool_value: bool,
bool_option_value_none: Option<bool>,
bool_option_value_some: Option<bool>,
+ bool_value_with_on: bool,
+ bool_value_with_off: bool,
string_value: String,
string_option_value_none: Option<String>,
@@ -339,6 +341,8 @@ mod tests {
map.insert("bool_value", "true");
map.insert("bool_option_value_none", "");
map.insert("bool_option_value_some", "false");
+ map.insert("bool_value_with_on", "on");
+ map.insert("bool_value_with_off", "off");
map.insert("string_value", "hello");
map.insert("string_option_value_none", "");
map.insert("string_option_value_some", "hello");
@@ -366,6 +370,8 @@ mod tests {
bool_value: true,
bool_option_value_none: None,
bool_option_value_some: Some(false),
+ bool_value_with_on: true,
+ bool_value_with_off: false,
string_value: "hello".to_string(),
string_option_value_none: None,
string_option_value_some: Some("hello".to_string()),