diff --git a/MOcov/@MOcovMFileCollection/write_cobertura_xml.m b/MOcov/@MOcovMFileCollection/write_cobertura_xml.m index 2afabe9..f50bc90 100644 --- a/MOcov/@MOcovMFileCollection/write_cobertura_xml.m +++ b/MOcov/@MOcovMFileCollection/write_cobertura_xml.m @@ -54,7 +54,7 @@ function write_to_file(fn,s) function coverage=compute_coverage(obj) numerator=0; - denumerator=0; + denominator=0; for k=1:numel(obj.mfiles) mfile=obj.mfiles{k}; @@ -63,9 +63,9 @@ function write_to_file(fn,s) ed=get_lines_executed(mfile); numerator=numerator+sum(ed & able); - denumerator=denumerator+sum(able); + denominator=denominator+sum(able); end - coverage=numerator/denumerator; + coverage=numerator/denominator; diff --git a/MOcov/@MOcovMFileCollection/write_xml_file.m b/MOcov/@MOcovMFileCollection/write_xml_file.m index de012a8..63445ac 100644 --- a/MOcov/@MOcovMFileCollection/write_xml_file.m +++ b/MOcov/@MOcovMFileCollection/write_xml_file.m @@ -71,7 +71,7 @@ function write_to_file(fn,s) function coverage=compute_coverage(obj) % compute overall coverage across all files numerator=0; - denumerator=0; + denominator=0; for k=1:count_mfiles(obj) mfile=get_mfile(obj,k); @@ -80,9 +80,9 @@ function write_to_file(fn,s) executed=get_lines_executed(mfile); numerator=numerator+sum(executed & executable); - denumerator=denumerator+sum(executable); + denominator=denominator+sum(executable); end - coverage=numerator/denumerator; + coverage=numerator/denominator;