Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

MAINT: Change denumerator->denominator #1

Merged
merged 1 commit into from Feb 1, 2016
Jump to file or symbol
Failed to load files and symbols.
+6 −6
Split
@@ -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;
@@ -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;