mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-09 13:07:37 +08:00
Add missing tags to tests requiring Erlang docs
This commit is contained in:
parent
c3fc262f80
commit
9c1e67390a
2 changed files with 16 additions and 5 deletions
|
@ -1481,6 +1481,11 @@ defmodule Livebook.IntellisenseTest do
|
||||||
|
|
||||||
assert %{contents: [type]} = Intellisense.get_details("Date.t", 6, context, node())
|
assert %{contents: [type]} = Intellisense.get_details("Date.t", 6, context, node())
|
||||||
assert type =~ "Date.t()"
|
assert type =~ "Date.t()"
|
||||||
|
end
|
||||||
|
|
||||||
|
@tag :erl_docs
|
||||||
|
test "returns module-prepended Erlang type signatures" do
|
||||||
|
context = eval(do: nil)
|
||||||
|
|
||||||
assert %{contents: [type]} =
|
assert %{contents: [type]} =
|
||||||
Intellisense.get_details(":code.load_error_rsn", 8, context, node())
|
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 %{contents: [type]} = Intellisense.get_details("Date.t", 6, context, node())
|
||||||
assert type =~ "@type t() :: %Date"
|
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
|
# opaque types are listed without internal definition
|
||||||
assert %{contents: [type]} =
|
assert %{contents: [type]} =
|
||||||
Intellisense.get_details("MapSet.internal", 10, context, node())
|
Intellisense.get_details("MapSet.internal", 10, context, node())
|
||||||
|
@ -1506,6 +1506,16 @@ defmodule Livebook.IntellisenseTest do
|
||||||
assert type =~ "@opaque internal(value)\n"
|
assert type =~ "@opaque internal(value)\n"
|
||||||
end
|
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
|
test "returns link to online documentation" do
|
||||||
context = eval(do: nil)
|
context = eval(do: nil)
|
||||||
|
|
||||||
|
|
|
@ -91,6 +91,7 @@ defmodule Livebook.RemoteIntellisenseTest do
|
||||||
} in Intellisense.get_completion_items("RemoteModule.hel", context, node)
|
} in Intellisense.get_completion_items("RemoteModule.hel", context, node)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@tag :erl_docs
|
||||||
test "find modules from apps", %{node: node} do
|
test "find modules from apps", %{node: node} do
|
||||||
context = eval(do: nil)
|
context = eval(do: nil)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue