Makes copies of the source file for the given modules, where it for each executable line is specified how many times it has been executed.
The output file OutFile defaults to Module.COVER.out, or Module.COVER.html if the option html was used.
If Modules is an atom (one module), the return will be Answer, else the return will be a list, {result, Ok, Fail}.
If Modules is not given, all modules that have da ta in the cover data table, are analysed. Note that this includes both cover compiled modules and imported modules.
If a module is not Cover compiled, this is indicated by the error reason {not_cover_compiled, Module}.
If the source file and/or the output file cannot be opened using file:open/2, the function returns {error, {file, File, Reason}} where File is the file name and Reason is the error reason.
If a module was cover compiled from the .beam file, that is, using compile_beam/1 or compile_beam_directory/0,1 ,it is assumed that the source code can be found in the same directory as the .beam file, in ../src relative to that directory, or using the source path in Module:module_info(compile). When using the latter, two paths are examined: first the one constructed by joining ../src and the tail of the compiled path below a trailing src component, then the compiled path itself. If no source code is found, this is indicated by the error reason {no_source_code_found, Module}.