Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
akash-akya committed Jan 3, 2025
1 parent baac85c commit 688d67c
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions test/vix/foreign_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,21 @@ defmodule Vix.Vips.ForeignTest do
test "find_load_source" do
bin = File.read!(img_path("puppies.jpg"))

assert {pipe, source} = Vix.SourcePipe.new()
assert :ok = Vix.SourcePipe.write(pipe, bin)
assert :ok = Vix.SourcePipe.stop(pipe)
assert {pipe, source} =
Vix.SourcePipe.new()
|> IO.inspect(label: "Vix.SourcePipe.new")

Check warning on line 29 in test/vix/foreign_test.exs

View workflow job for this annotation

GitHub Actions / Lint (1.17.x, 27.x)

There should be no calls to `IO.inspect/1`.

assert {:ok, "VipsForeignLoadJpegSource"} = Foreign.find_load_source(source)
assert :ok =
Vix.SourcePipe.write(pipe, bin)
|> IO.inspect(label: "Vix.SourcePipe.write")

Check warning on line 33 in test/vix/foreign_test.exs

View workflow job for this annotation

GitHub Actions / Lint (1.17.x, 27.x)

There should be no calls to `IO.inspect/1`.

assert :ok =
Vix.SourcePipe.stop(pipe)
|> IO.inspect(label: "Vix.SourcePipe.stop")

Check warning on line 37 in test/vix/foreign_test.exs

View workflow job for this annotation

GitHub Actions / Lint (1.17.x, 27.x)

There should be no calls to `IO.inspect/1`.

assert {:ok, "VipsForeignLoadJpegSource"} =
Foreign.find_load_source(source)
|> IO.inspect(label: "Foreign.find_load_source(source)")

Check warning on line 41 in test/vix/foreign_test.exs

View workflow job for this annotation

GitHub Actions / Lint (1.17.x, 27.x)

There should be no calls to `IO.inspect/1`.
end

test "find_save_target" do
Expand Down

0 comments on commit 688d67c

Please sign in to comment.