Skip to content

Commit ea27ac0

Browse files
committed
test: porting helpers to the PR desc
1 parent 748c920 commit ea27ac0

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

test/ex_image_info_test/images/isobmff_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ defmodule ExImageInfoTest.Images.ISOBMFFTest do
242242
end
243243

244244
defp fetch_binary(url, tmp_dir, debug? \\ false) do
245-
Enum.all?([:inets, :ssl], &(:ok = Application.ensure_started(&1)))
245+
true = Enum.all?([:inets, :ssl], &Application.ensure_started/1)
246246

247247
filename = Path.basename(url)
248248
tmp_file = Path.join([tmp_dir, filename])

test/ex_image_info_test/mocks/isobmff_test.exs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -440,21 +440,4 @@ defmodule ExImageInfoTest.Mocks.ISOBMFFTest do
440440
assert info(image_truncated) == nil
441441
end
442442
end
443-
end
444-
445-
defmodule HexConverter do
446-
def convert(hex_string) do
447-
hex_string
448-
|> String.split(" ", trim: true)
449-
|> Enum.chunk_every(4)
450-
|> Enum.map(fn chunk ->
451-
chunk
452-
|> Enum.join("")
453-
|> then(&("0x" <> &1 <> "::32"))
454-
end)
455-
|> Enum.chunk_every(4)
456-
|> Enum.map(&Enum.join(&1, ", "))
457-
|> Enum.join(",\n")
458-
|> then(&"<<\n#{&1}\n>>")
459-
end
460-
end
443+
end

0 commit comments

Comments
 (0)