Skip to content

Commit 9e4ad88

Browse files
committed
fix test on 1.14
1 parent 686bbcd commit 9e4ad88

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

test/elixir_sense/core/metadata_builder_test.exs

+13-2
Original file line numberDiff line numberDiff line change
@@ -7418,10 +7418,21 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
74187418
if Version.match?(System.version(), ">= 1.15.0") do
74197419
assert state.calls
74207420
|> Enum.flat_map(fn {_line, info} -> info end)
7421-
|> Enum.filter(fn info -> info.mod != Kernel end) == []
7421+
|> Enum.filter(fn info -> info.kind == :local_function end) == []
74227422
else
74237423
assert %{
7424-
4 => [%CallInfo{arity: 0, func: :func_1, position: {4, 5}, mod: nil}]
7424+
4 => [
7425+
_,
7426+
_,
7427+
_,
7428+
%CallInfo{
7429+
arity: 0,
7430+
func: :func_1,
7431+
position: {4, 5},
7432+
mod: NyModule,
7433+
kind: :local_function
7434+
}
7435+
]
74257436
} = state.calls
74267437
end
74277438
end

0 commit comments

Comments
 (0)