summaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)Author
2022-06-01Fix clippy: Derive Eq as wellMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-06-01Fix clippy: Derive Eq as wellMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-06-01Fix clippy: Derive Eq as wellMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-06-01Fix clippy: Derive Eq as wellMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-06-01Fix clippy: Derive Eq as wellMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-06-01Fix clippy: Derive Eq as wellMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-04-18test: Adopt test-env to fix random test failureXuanwo
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-04-10fix: dot in config nameCfirTsabari
Rust std `set_extension` is either add an extension if none exists, or edit the current one if such exists. This caused a mishandling when user is using a name with a dot, part of the name was treated as an extension, and be overwritten by the different format extensions. So manually *adding* a new dummy extension will cause the current code, to behave as expected, since it will always overwrite the new dummy extension and not part of the name.
2022-03-11chore: add the possibility to keep the prefix from env var.Jérémy Audiger
2022-02-28feat: env contains list of stringssimon-an
Signed-off-by: simon-an <26556185+simon-an@users.noreply.github.com>
2022-02-24add prefix separator supportConrad Ludgate
2022-01-29use semicolons if nothing returnedDaniel Eades
2022-01-29use separators in long literalsDaniel Eades
2022-01-29use 'Self' to refer to own typeDaniel Eades
2021-12-29silence/address unused code warningsDaniel Eades
2021-12-29use 'assert' rather than 'assert_eq' for comparison to literal boolDaniel Eades
2021-12-29de-glob importsDaniel Eades
2021-12-29remove 'extern crate' importsDaniel Eades
2021-12-29use explicit imports for macrosDaniel Eades
2021-11-23Merge pull request #251 from conradludgate/value-deserializeMatthias Beyer
rename try_into to try_deserialize to avoid confusion
2021-11-23update tests not use deprecated methodsConrad Ludgate
2021-11-23rename try_into to try_deserialize to avoid confusionConrad Ludgate
2021-11-21chore: some file read simplificationsConrad Ludgate
2021-11-21Add test for testing value typeMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-10-02Remove support for hjsonMatthias Beyer
The serde-hjson crate is not maintained anymore and this feature is actually causing pain in packaging even. Thus, remove it. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-10-02Merge pull request #225 from matthiasbeyer/test-wrapping-integersMatthias Beyer
Add tests for wrapping integers
2021-09-09Add tests for weird keysMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-08-23Add tests for wrapping integersMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-08-15Rename MapImpl to MapDavid Orchard
2021-08-15Remove unnecessary uses for feature/mapDavid Orchard
2021-08-15Move order preservation under a feature gateDavid Orchard
2021-08-15Disable map order preservation for hjsonDavid Orchard
2021-08-15Use LinkedHashMap in place of HashMapDavid Orchard
2021-08-15Create test cases to demonstrate lossy map orderDavid Orchard
2021-07-03Add test for async builderRadosław Kot
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Reviewed-by: Matthias Beyer <mail@beyermatthias.de>
2021-06-08Fix: Remove trailing commaMatthias Beyer
Because the old Rust version in the CI fails with this comma in the macro call, we remove it here. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-05-15Support format json5up9cloud
2021-05-08Use ConfigBuilder in env.rs testsRadosław Kot
2021-05-08Make ConfigBuilder's method consumingRadosław Kot
2021-05-08Modify tests to use both ConfigBuilder and ConfigRadosław Kot
2021-05-04Fix env tests, remove unused importJohn Brandt
2021-05-04more environment variable parsing testsJohn Brandt
2021-05-04Renames parse_numbers to try_parsingJoel Gallant
2021-05-04Uses into_* for value conversions and adds bool as an optionJoel Gallant
2021-05-04Adds 'parse_numbers' options for EnvironmentJoel Gallant
This can be particularly helpful for `MY_SERVER_PORT=4334 cargo run`
2021-04-20Add support for RON formatLevente Morva
2021-04-09Ensure order in the galaxy... I mean the importsMatthias Beyer
This patch sorts the imports: 1. std imports 2. external crate imports 3. own module imports In three blocks, each alphabetically (with is also enforced by rustfmt). As well as it prefixes the imports of own modules with crate:: This is just a quality-of-life patch :-) Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-28Rename get_str() → get_string() to match returned typeCaleb Maclennan
2021-03-26Add tests for json value arrayMatthias Beyer
This is added because of #145 to confirm whether the issue is valid or not. As the test succeeds, the issue is not valid. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-26Merge pull request #184 from matthiasbeyer/config-only-default-constructorMatthias Beyer
Remove Config::new()