Skip to content

Commit c891f18

Browse files
committed
Fix test
1 parent 54d00d9 commit c891f18

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

apps/els_lsp/priv/code_navigation/src/diagnostics_xref.erl

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ dynamic_call(Foo, Bar) ->
1414
foo:Bar().
1515

1616
not_exported() ->
17-
lists:map_1(foo, [1,2,3]).
17+
code_navigation:function_c().

apps/els_lsp/test/els_diagnostics_SUITE.erl

+7-4
Original file line numberDiff line numberDiff line change
@@ -787,9 +787,11 @@ crossref(_Config) ->
787787
message => <<"Cannot find definition for function lists:map/3">>,
788788
range => {{5, 8}, {5, 11}}
789789
},
790+
790791
#{
791-
message => <<"Function lists:map_1/2 is not exported.">>,
792-
range => {{16, 10}, {16, 15}}
792+
message =>
793+
<<"Function code_navigation:function_c/0 is not exported.">>,
794+
range => {{16, 20}, {16, 30}}
793795
}
794796
],
795797
Warnings = [],
@@ -808,8 +810,9 @@ crossref_compiler_enabled(_Config) ->
808810
range => {{5, 8}, {5, 11}}
809811
},
810812
#{
811-
message => <<"Function lists:map_1/2 is not exported.">>,
812-
range => {{16, 10}, {16, 15}}
813+
message =>
814+
<<"Function code_navigation:function_c/0 is not exported.">>,
815+
range => {{16, 20}, {16, 30}}
813816
}
814817
],
815818
Warnings = [],

0 commit comments

Comments
 (0)