Skip to content

Commit 943987c

Browse files
authored
Merge pull request #612 from epage/test
test: Reduce requirements
2 parents 7ef3024 + bf42f56 commit 943987c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+2008
-2538
lines changed

Cargo.lock

Lines changed: 111 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ glob = "0.3"
148148
notify = "7.0"
149149
temp-env = "0.3"
150150
log = { version = "0.4", features = ["serde"] }
151+
snapbox = "0.6.21"
151152

152153
[[example]]
153154
name = "async_source"

src/value.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,12 @@ mod tests {
891891
#[cfg(feature = "toml")]
892892
fn test_i64() {
893893
let c = Config::builder()
894-
.add_source(File::new("tests/types/i64.toml", FileFormat::Toml))
894+
.add_source(File::from_str(
895+
"
896+
value = 120
897+
",
898+
FileFormat::Toml,
899+
))
895900
.build()
896901
.unwrap();
897902

tests/Settings-enum-test.ini

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/Settings-enum-test.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/Settings-enum-test.json5

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/Settings-enum-test.ron

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/Settings-enum-test.toml

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/Settings-enum-test.yaml

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/Settings-invalid.hjson

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)