Add missing tags to tests requiring Erlang docs

This commit is contained in:
Jonatan Kłosko 2024-01-22 17:31:02 +08:00
parent c3fc262f80
commit 9c1e67390a
2 changed files with 16 additions and 5 deletions

View file

@ -1481,6 +1481,11 @@ defmodule Livebook.IntellisenseTest do
assert %{contents: [type]} = Intellisense.get_details("Date.t", 6, context, node())
assert type =~ "Date.t()"
end
@tag :erl_docs
test "returns module-prepended Erlang type signatures" do
context = eval(do: nil)
assert %{contents: [type]} =
Intellisense.get_details(":code.load_error_rsn", 8, context, node())
@ -1494,11 +1499,6 @@ defmodule Livebook.IntellisenseTest do
assert %{contents: [type]} = Intellisense.get_details("Date.t", 6, context, node())
assert type =~ "@type t() :: %Date"
assert %{contents: [type]} =
Intellisense.get_details(":code.load_error_rsn", 8, context, node())
assert type =~ "@type load_error_rsn() ::"
# opaque types are listed without internal definition
assert %{contents: [type]} =
Intellisense.get_details("MapSet.internal", 10, context, node())
@ -1506,6 +1506,16 @@ defmodule Livebook.IntellisenseTest do
assert type =~ "@opaque internal(value)\n"
end
@tag :erl_docs
test "includes Erlang type specs" do
context = eval(do: nil)
assert %{contents: [type]} =
Intellisense.get_details(":code.load_error_rsn", 8, context, node())
assert type =~ "@type load_error_rsn() ::"
end
test "returns link to online documentation" do
context = eval(do: nil)

View file

@ -91,6 +91,7 @@ defmodule Livebook.RemoteIntellisenseTest do
} in Intellisense.get_completion_items("RemoteModule.hel", context, node)
end
@tag :erl_docs
test "find modules from apps", %{node: node} do
context = eval(do: nil)