Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
plux committed Oct 15, 2024
1 parent 54d00d9 commit c891f18
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/els_lsp/priv/code_navigation/src/diagnostics_xref.erl
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ dynamic_call(Foo, Bar) ->
foo:Bar().

not_exported() ->
lists:map_1(foo, [1,2,3]).
code_navigation:function_c().
11 changes: 7 additions & 4 deletions apps/els_lsp/test/els_diagnostics_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -787,9 +787,11 @@ crossref(_Config) ->
message => <<"Cannot find definition for function lists:map/3">>,
range => {{5, 8}, {5, 11}}
},

#{
message => <<"Function lists:map_1/2 is not exported.">>,
range => {{16, 10}, {16, 15}}
message =>
<<"Function code_navigation:function_c/0 is not exported.">>,
range => {{16, 20}, {16, 30}}
}
],
Warnings = [],
Expand All @@ -808,8 +810,9 @@ crossref_compiler_enabled(_Config) ->
range => {{5, 8}, {5, 11}}
},
#{
message => <<"Function lists:map_1/2 is not exported.">>,
range => {{16, 10}, {16, 15}}
message =>
<<"Function code_navigation:function_c/0 is not exported.">>,
range => {{16, 20}, {16, 30}}
}
],
Warnings = [],
Expand Down

0 comments on commit c891f18

Please sign in to comment.