   test "profiles evaluated expression" do
     in_fixture "no_mixfile", fn ->
       assert capture_io(fn ->
-        Mix.Tasks.Profile.Fprof.run(
-          ["-e", "Enum.each(1..5, fn(_) -> HashSet.new end)"]
-        )
+        Fprof.run(["-e", "Enum.each(1..5, fn(_) -> HashSet.new end)"])
       end) =~ ~r(HashSet\.new/0 *5 *\d+\.\d{3} *\d+\.\d{3})
     end
   end

  test "expands callers" do
    in_fixture "no_mixfile", fn ->
      assert capture_io(fn ->
        Mix.Tasks.Profile.Fprof.run(
          ["-e", "Enum.each(1..5, fn(_) -> HashSet.new end)", "--callers"]
        )
      end) =~ ~r(HashSet\.new/0 *5 *\d+\.\d{3} *\d+\.\d{3} +<--)
    end
  end

  test "sort options" do
    in_fixture "no_mixfile", fn ->
      assert capture_io(fn ->
        Fprof.run(["-e", "Enum.each(1..5, fn(_) -> HashSet.new end)", "--sort acc"])
      end) =~ ~r(HashSet\.new/0 *5 *\d+\.\d{3} *\d+\.\d{3})

      assert capture_io(fn ->
        Fprof.run(["-e", "Enum.each(1..5, fn(_) -> HashSet.new end)", "--sort own"])
      end) =~ ~r(HashSet\.new/0 *5 *\d+\.\d{3} *\d+\.\d{3})
    end
  end
