anchor.diff:  		       );
   aggregate_coverage2([], CoveredLines, TotalLines, ModuleStats) ->
       {ok, CoveredLines, TotalLines, ModuleStats}.
  +
  +%%--------------------------------------------------------------------
  +%% Function: get_module_coverage(Module)
  +%%           Module = atom(), module name
  +%% Descrip.: Get number of covered/not covered lines of real code in
  +%%           a module. Excludes all functions named test* from the
  +%%           bottom of the coverage data for Module.
  +%% Returns : {ok, Cov, NotCov}
  +%%           Cov    = integer(), code lines covered in Module
  +%%           NotCov = integer(), lines not covered
  +%%--------------------------------------------------------------------
  +get_module_coverage(Module) when is_atom(Module) ->
  +    {ok, Data} = cover:analyse(Module, coverage, function),
  +    {ok, Data2} = remove_test_functions_data(Data),
  +    get_module_coverage2(Data2, 0, 0).
  +
  +get_module_coverage2([{_MFA, {Cov, NotCov}} | T], TotCov, TotNotCov) ->
  +    get_module_coverage2(T, TotCov + Cov, TotNotCov + NotCov);
  +get_module_coverage2([], TotCov, TotNotCov) ->
  +    {ok, TotCov, TotNotCov}.
  +
  +remove_test_functions_data(Data) when is_list(Data) ->
  +    In = lists:reverse(Data),
  +    Out = remove_test_functions_data2(In),
  +    {ok, lists:reverse(Out)}.
  +
  +%% Remove all entrys for functions named test* until we find
  +%% one that does not match. Should be fed a modules coverage data
  +%% in reverse order since the test* functions are at the bottom.
  +remove_test_functions_data2([{{_M, F, _A}, {_Cov, _NotCov}} = H | T]) ->
  +    case atom_to_list(F) of
  +	"test" ++ _ ->
  +	    remove_test_functions_data2(T);
  +	_ ->
  +	    [H | T]
  +    end;
  +remove_test_functions_data2([]) ->
  +    [].
  
positive.code: 		       sipauth,
  		       sipproxy,
  		       sipuserdb_file_backend,
  		       siptimer,
  		       yxa_config_erlang,
  		       yxa_config_check
  
negative.code: %%--------------------------------------------------------------------
  
  -module(autotest).
  %%-compile(export_all).
  
  %%--------------------------------------------------------------------
  %% External exports
  