소스 검색

Merge pull request #1018 from talentdeficit/cover_what_are_you_doooooing

change detection of valid modules for `eunit`
pull/1024/head
Fred Hebert 9 년 전
부모
커밋
ec7245b454
1개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. +3
    -4
      src/rebar_prv_eunit.erl

+ 3
- 4
src/rebar_prv_eunit.erl 파일 보기

@ -334,10 +334,9 @@ validate_file(State, File) ->
end.
validate_module(_State, Module) ->
Path = code:which(Module),
case beam_lib:chunks(Path, [exports]) of
{ok, _} -> ok;
{error, beam_lib, _} -> {error, lists:concat(["Module `", Module, "' not found in project."])}
case code:which(Module) of
non_existing -> {error, lists:concat(["Module `", Module, "' not found in project."])};
_ -> ok
end.
resolve_eunit_opts(State) ->

불러오는 중...
취소
저장