anchor.diff:  -include("rebar.hrl").
   
   -define(PROVIDER, cover).
  --define(DEPS, []).
  +-define(DEPS, [app_discovery]).
   
   %% ===================================================================
   %% Public API
  
positive.code:     end.
  
  analysis(State, Task) ->
      Mods = cover:imported_modules(),
      lists:map(
          fun(Mod) ->
              {ok, Answer} = cover:analyze(Mod, coverage, line),
              {ok, File} = analyze_to_file(Mod, State, Task),
              {Mod, process(Answer), File}
          end,
          Mods).
  
  analyze_to_file(Mod, State, Task) ->
      CoverDir = cover_dir(State),
  
negative.code:     ExportFile = filename:join([DataDir, atom_to_list(Task) ++ ".coverdata"]),
      case cover:export(ExportFile) of
          ok ->
              ?DEBUG("Cover data written to ~p.", [ExportFile]);
          {error, Reason} ->
              ?WARN("Cover data export failed: ~p", [Reason])
      end.
  