Skip to content
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

Merged
merged 2 commits into from
Oct 3, 2018
Merged

Write test suite #12

merged 2 commits into from
Oct 3, 2018

Conversation

hauleth
Copy link
Contributor

@hauleth hauleth commented Oct 3, 2018

No description provided.

test/imager/stats_test.exs Show resolved Hide resolved
test/imager/stats_test.exs Show resolved Hide resolved

alias Imager.Config.PortNormalization, as: Subject

defp non_positive_integer() do

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

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)}"

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.

@coveralls
Copy link

coveralls commented Oct 3, 2018

Pull Request Test Coverage Report for Build c4399bed-21b0-48ad-a2da-1fd9b9751ba7

  • 16 of 16 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+29.3%) to 72.596%

Totals Coverage Status
Change from base Build b5c20c52-22f1-44a8-a12c-6bb4d77b1dd0: 29.3%
Covered Lines: 151
Relevant Lines: 208

💛 - Coveralls

@hauleth hauleth merged commit 2780bd6 into master Oct 3, 2018
@hauleth hauleth deleted the write-tests branch October 3, 2018 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants