@@ -36,6 +36,7 @@ defmodule ElixirLS.LanguageServer.Providers.ExecuteCommand.LlmModuleDependencies
3636 end
3737
3838 describe "execute/2" do
39+ if Version . match? ( System . version ( ) , ">= 1.18.0" ) do
3940 test "returns direct dependencies for a module" do
4041 state = % { source_files: % { } }
4142
@@ -73,7 +74,9 @@ defmodule ElixirLS.LanguageServer.Providers.ExecuteCommand.LlmModuleDependencies
7374 # Check struct expansions
7475 assert "ElixirLS.Test.ModuleDepsC" in direct_deps . struct_expansions
7576 end
77+ end
7678
79+ if Version . match? ( System . version ( ) , ">= 1.18.0" ) do
7780 test "returns reverse dependencies" do
7881 state = % { source_files: % { } }
7982
@@ -107,6 +110,7 @@ defmodule ElixirLS.LanguageServer.Providers.ExecuteCommand.LlmModuleDependencies
107110 # Check struct expansions
108111 assert "ElixirLS.Test.ModuleDepsB" in reverse_deps . struct_expansions
109112 end
113+ end
110114
111115 test "returns transitive compile dependencies" do
112116 state = % { source_files: % { } }
@@ -218,6 +222,7 @@ defmodule ElixirLS.LanguageServer.Providers.ExecuteCommand.LlmModuleDependencies
218222 assert is_list ( direct_deps . exports_dependencies )
219223 end
220224
225+ if Version . match? ( System . version ( ) , ">= 1.18.0" ) do
221226 test "filters reverse dependencies by function for remote calls" do
222227 state = % { source_files: % { } }
223228
@@ -251,6 +256,7 @@ defmodule ElixirLS.LanguageServer.Providers.ExecuteCommand.LlmModuleDependencies
251256
252257 assert length ( matching_imports ) > 0
253258 end
259+ end
254260
255261 test "handles remote call with arity nil (function name only)" do
256262 state = % { source_files: % { } }
0 commit comments