Skip to content

Run formatter on lib/test/mix/tasks/profile.fprof_test.exs #6794

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

Merged
merged 2 commits into from
Oct 10, 2017
Merged

Run formatter on lib/test/mix/tasks/profile.fprof_test.exs #6794

merged 2 commits into from
Oct 10, 2017

Conversation

AshayTikekar
Copy link
Contributor

Run formatter on lib/test/mix/tasks/profile.fprof_test.exs

capture_io(fn ->
Fprof.run([
"-e",
"spawn(fn -> Process.sleep(:infinity) end); Enum.each(1..5, fn(_) -> MapSet.new end)",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please extract this out so everything is a single line?

expr = "spawn(fn -> Process.sleep(:infinity) end); Enum.each(1..5, fn(_) -> MapSet.new end)"
output = capture_io(fn -> Fprof.run(["-e", expr, "--details"]) end)
assert output =~ ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes i will do that

assert_raise Mix.Error, "No files matched pattern \"non-existent\" given to --require", fn ->
capture_io(fn -> Fprof.run ["-pr", "non-existent"] end)
end
assert_raise Mix.Error,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please format this and below as in example #3 here: #6643

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure....

@josevalim josevalim merged commit 872cc02 into elixir-lang:master Oct 10, 2017
@josevalim
Copy link
Member

❤️ 💚 💙 💛 💜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants