-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bind env variables with ENV-BINDER, clean tests
Thanks to ENV-BINDER we have moved the responsibility for bindings of environment variables to an external, well tested package. ENV-BINDER works with unexported fields, so we can bind the values of some fields and calculate a new value from them in the calculation phase. An example is enum, where env_variable has the value "info" but the internal state of the structure has the value 1. (I have also created a PR in [kelsyhightower/envconfig](kelseyhightower/envconfig#198), which solves the problem with private fields). Thanks to the delegation of responsibility I could delete about a third of the test without changing the depressolver coverage, which increased to 95% with the changes. Signed-off-by: kuritka <[email protected]>
- Loading branch information
Showing
5 changed files
with
564 additions
and
521 deletions.
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
Oops, something went wrong.