-
Notifications
You must be signed in to change notification settings - Fork 2
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
Write test suite #12
Write test suite #12
Conversation
|
||
alias Imager.Config.PortNormalization, as: Subject | ||
|
||
defp non_positive_integer() do |
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.
Do not use parentheses when defining a function which has no arguments.
|
||
alias Imager.Config.EnvTransform, as: Subject | ||
|
||
defp non_env() do |
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.
Do not use parentheses when defining a function which has no arguments.
end | ||
rescue | ||
ArgumentError -> | ||
raise "Expected port to be positive integer, got: #{inspect(value)}" |
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.
Use reraise
inside a rescue block to preserve the original stacktrace.
Pull Request Test Coverage Report for Build c4399bed-21b0-48ad-a2da-1fd9b9751ba7
💛 - Coveralls |
No description provided.