-
-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: raise library test coverage #349
Closed
Closed
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
0f84515
test: serde deserialization and triggering on size trigger, cleanup, …
bconn98 2fa9b4d
refactor: run fomatter
bconn98 ce47109
ci: MSRV bump
bconn98 566b53c
test: limit use and static to config parsing feature
bconn98 90b524d
test: add a test for invalid unit
bconn98 d53d50b
test: check for u64 overflow
bconn98 32bf6a5
fix: lint
bconn98 5273bbf
test: add tests to check coverage
bconn98 df16da8
more tests
bconn98 56fa037
test: ansi 100%
bconn98 9ed6f4b
fix: ind. features
bconn98 981a060
format:
bconn98 7f58bda
tests: more testing
bconn98 99fd52c
Merge branch 'size_trigger_tests' into add_all_tests
bconn98 62a0d9f
test: expand coverage on a couple more objects, and fix a couple
bconn98 a978f1c
fix: ci
bconn98 a9e1294
ci: fixed
bconn98 901c1ad
ci: fixed
bconn98 3cddcab
tests: add tests for chunk
bconn98 4a34bce
tests: more tests and lock down toml
bconn98 587fe47
test: add a few more tests in runtime
bconn98 cf92d74
test: more testing
bconn98 43973fb
test: min serde raised for consistent float formatting
bconn98 21f7736
test: continuing
bconn98 4a56b4e
doc: remove outdated warning
bconn98 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
use log::{error, info}; | ||
use log4rs; | ||
use serde_yaml; | ||
use std::env; | ||
|
||
fn main() { | ||
let config_str = include_str!("sample_config.yml"); | ||
let config = serde_yaml::from_str(config_str).unwrap(); | ||
log4rs::init_raw_config(config).unwrap(); | ||
|
||
let no_color = match env::var("NO_COLOR") { | ||
Ok(no_color) => no_color, | ||
Err(_) => "0".to_string(), | ||
}; | ||
let clicolor_force = match env::var("CLICOLOR_FORCE") { | ||
Ok(clicolor_force) => clicolor_force, | ||
Err(_) => "0".to_string(), | ||
}; | ||
let cli_color = match env::var("CLICOLOR") { | ||
Ok(cli_color) => cli_color, | ||
Err(_) => "0".to_string(), | ||
}; | ||
info!( | ||
"NO_COLOR: {}, CLICOLOR_FORCE: {}, CLICOLOR: {}", | ||
no_color, clicolor_force, cli_color | ||
); | ||
error!( | ||
"NO_COLOR: {}, CLICOLOR_FORCE: {}, CLICOLOR: {}", | ||
no_color, clicolor_force, cli_color | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why rm?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so, i just pulled the thread and although gzip is no-longer part of the default features, I still think a warning regarding the use of gzip is important to be featured in the readme... perhaps not as prominently. Also, this change should be pulled out into a separate PR.