From 820012410addc6128d964d083dcd9b972a5c76f4 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Wed, 29 Sep 2010 23:31:50 +0200 Subject: [PATCH] Fix dialyzer warning for call to code:which/1 --- src/rebar_eunit.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rebar_eunit.erl b/src/rebar_eunit.erl index 67559ca..2dd02a7 100644 --- a/src/rebar_eunit.erl +++ b/src/rebar_eunit.erl @@ -284,7 +284,8 @@ has_header(Mod, Header) -> cover_compiled -> {file, File} = cover:is_compiled(Mod), File; - undefined -> Mod; + non_existing -> Mod; + preloaded -> Mod; L -> L end, {ok, {_, [{abstract_code, {_, AC}}]}} = beam_lib:chunks(Mod1, [abstract_code]),