aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2022-05-31 14:46:46 +0200
committerLoïc Hoguin <[email protected]>2022-05-31 14:46:46 +0200
commitbf7a194b0b473186d14193eefdab9b65fa927443 (patch)
tree91454feb9f45103b2383441697d56a753bf2af90 /test
parent9e7c9f9e0628ee9d84ade4b4de85c2a5e7af7452 (diff)
downloaderlang.mk-bf7a194b0b473186d14193eefdab9b65fa927443.tar.gz
erlang.mk-bf7a194b0b473186d14193eefdab9b65fa927443.tar.bz2
erlang.mk-bf7a194b0b473186d14193eefdab9b65fa927443.zip
xref: Also ignore targets where applicable
Diffstat (limited to 'test')
-rw-r--r--test/plugin_xref.mk20
1 files changed, 12 insertions, 8 deletions
diff --git a/test/plugin_xref.mk b/test/plugin_xref.mk
index 06b145b..0246e23 100644
--- a/test/plugin_xref.mk
+++ b/test/plugin_xref.mk
@@ -215,7 +215,7 @@ xref-ignore-inline-fa: init
"-module(bad)." \
"-export([f/0])." \
"-ignore_xref([{f,0}])." \
- "f() -> this_module:does_not_exist()." \
+ "f() -> f_module:f_not_exist()." \
> $(APP)/src/bad.erl
$i "Run the Xref plugin, expect success"
@@ -228,12 +228,14 @@ xref-ignore-inline-mfa: init
$t cp ../erlang.mk $(APP)/
$t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
- $i "Create a module with an undefined function call and an inline ignore"
+ $i "Create a module with undefined function calls and inline ignores"
$t printf "%s\n" \
"-module(bad)." \
- "-export([f/0])." \
+ "-export([f/0, g/0])." \
"-ignore_xref([{bad,f,0}])." \
- "f() -> this_module:does_not_exist()." \
+ "-ignore_xref({g_module,g_not_exist,0})." \
+ "f() -> f_module:f_not_exist()." \
+ "g() -> g_module:g_not_exist()." \
> $(APP)/src/bad.erl
$i "Run the Xref plugin, expect success"
@@ -246,12 +248,14 @@ xref-ignore-inline-mod: init
$t cp ../erlang.mk $(APP)/
$t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v
- $i "Create a module with an undefined function call and an inline ignore"
+ $i "Create a module with undefined function calls and inline ignores"
$t printf "%s\n" \
"-module(bad)." \
- "-export([f/0])." \
- "-ignore_xref(?MODULE)." \
- "f() -> this_module:does_not_exist()." \
+ "-export([f/0, g/0])." \
+ "-ignore_xref([?MODULE])." \
+ "-ignore_xref(g_module)." \
+ "f() -> f_module:f_not_exist()." \
+ "g() -> g_module:g_not_exist()." \
> $(APP)/src/bad.erl
$i "Run the Xref plugin, expect success"