@@ -332,17 +332,20 @@ defmodule IEx.HelpersTest do
332
332
assert help =~ "Welcome to Interactive Elixir"
333
333
end
334
334
335
+ @ tag :erlang_doc
335
336
test "prints Erlang module documentation" do
336
337
captured = capture_io ( fn -> h ( :timer ) end )
337
338
assert captured =~ "This module provides useful functions related to time."
338
339
end
339
340
341
+ @ tag :erlang_doc
340
342
test "prints Erlang module function specs" do
341
343
captured = capture_io ( fn -> h ( :timer . sleep ( ) / 1 ) end )
342
344
assert captured =~ ":timer.sleep/1"
343
345
assert captured =~ "-spec sleep(Time) -> ok when Time :: timeout()."
344
346
end
345
347
348
+ @ tag :erlang_doc
346
349
test "handles non-existing Erlang module function" do
347
350
captured = capture_io ( fn -> h ( :timer . baz ( ) / 1 ) end )
348
351
assert captured =~ "No documentation for :timer.baz was found"
@@ -1008,13 +1011,15 @@ defmodule IEx.HelpersTest do
1008
1011
cleanup_modules ( [ TypeSample ] )
1009
1012
end
1010
1013
1011
- test "prints all types in erlang module" do
1014
+ @ tag :erlang_doc
1015
+ test "prints all types in Erlang module" do
1012
1016
captured = capture_io ( fn -> t ( :queue ) end )
1013
1017
assert captured =~ "-type queue() :: queue(_)"
1014
1018
assert captured =~ "-opaque queue(Item)"
1015
1019
end
1016
1020
1017
- test "prints single type from erlang module" do
1021
+ @ tag :erlang_doc
1022
+ test "prints single type from Erlang module" do
1018
1023
captured = capture_io ( fn -> t ( :erlang . iovec ( ) ) end )
1019
1024
assert captured =~ "-type iovec() :: [binary()]"
1020
1025
assert captured =~ "A list of binaries."
@@ -1024,7 +1029,8 @@ defmodule IEx.HelpersTest do
1024
1029
assert captured =~ "A list of binaries."
1025
1030
end
1026
1031
1027
- test "handles non-existing types from erlang module" do
1032
+ @ tag :erlang_doc
1033
+ test "handles non-existing types from Erlang module" do
1028
1034
captured = capture_io ( fn -> t ( :erlang . foo ( ) ) end )
1029
1035
assert captured =~ "No type information for :erlang.foo was found or :erlang.foo is private"
1030
1036
0 commit comments