@@ -36,6 +36,7 @@ defmodule ElixirLS.LanguageServer.Providers.ExecuteCommand.LlmModuleDependencies
36
36
end
37
37
38
38
describe "execute/2" do
39
+ if Version . match? ( System . version ( ) , ">= 1.18.0" ) do
39
40
test "returns direct dependencies for a module" do
40
41
state = % { source_files: % { } }
41
42
@@ -73,7 +74,9 @@ defmodule ElixirLS.LanguageServer.Providers.ExecuteCommand.LlmModuleDependencies
73
74
# Check struct expansions
74
75
assert "ElixirLS.Test.ModuleDepsC" in direct_deps . struct_expansions
75
76
end
77
+ end
76
78
79
+ if Version . match? ( System . version ( ) , ">= 1.18.0" ) do
77
80
test "returns reverse dependencies" do
78
81
state = % { source_files: % { } }
79
82
@@ -107,6 +110,7 @@ defmodule ElixirLS.LanguageServer.Providers.ExecuteCommand.LlmModuleDependencies
107
110
# Check struct expansions
108
111
assert "ElixirLS.Test.ModuleDepsB" in reverse_deps . struct_expansions
109
112
end
113
+ end
110
114
111
115
test "returns transitive compile dependencies" do
112
116
state = % { source_files: % { } }
@@ -218,6 +222,7 @@ defmodule ElixirLS.LanguageServer.Providers.ExecuteCommand.LlmModuleDependencies
218
222
assert is_list ( direct_deps . exports_dependencies )
219
223
end
220
224
225
+ if Version . match? ( System . version ( ) , ">= 1.18.0" ) do
221
226
test "filters reverse dependencies by function for remote calls" do
222
227
state = % { source_files: % { } }
223
228
@@ -251,6 +256,7 @@ defmodule ElixirLS.LanguageServer.Providers.ExecuteCommand.LlmModuleDependencies
251
256
252
257
assert length ( matching_imports ) > 0
253
258
end
259
+ end
254
260
255
261
test "handles remote call with arity nil (function name only)" do
256
262
state = % { source_files: % { } }
0 commit comments