Skip to content

fix typos #260

New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CONTRIBUTING
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ may also work, but some older versions are known not to.

Please execute
make checkstyle MODE=full UPDATE=true
on your code and verify correctness of the reformating (if any) before
on your code and verify correctness of the reformatting (if any) before
submitting a pull request.

Testing:
Expand Down Expand Up @@ -124,7 +124,7 @@ makes you think of a small project that you want to tackle: excellent.)
Pull requests which add tests for existing features or which enhance
existing tests are actively encouraged.
The lcov maintainers are painfully aware that the code coverage of the
lcov test suite on the lcov code base is embarassingly low.
lcov test suite on the lcov code base is embarrassingly low.

Note that existing tests and/or test drivers may themselves need to be
modified in order to work correctly on other platforms and with other
Expand Down Expand Up @@ -162,4 +162,4 @@ With your Signed-off-by, you certify the rules stated in section

[1] https://github.com/linux-test-project/lcov
[2] https://gcc.gnu.org
[3] https://metacpan.org/dist/Perl-Tidy/view/bin/perltidy
[3] https://metacpan.org/dist/Perl-Tidy/view/bin/perltidy
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ endif

release:
@if [ "$(origin VERSION)" != "command line" ] ; then echo "Please specify new version number, e.g. VERSION=1.16" >&2 ; exit 1 ; fi
@if [ -n "$$(git status --porcelain 2>&1)" ] ; then echo "The repository contains uncommited changes" >&2 ; exit 1 ; fi
@if [ -n "$$(git status --porcelain 2>&1)" ] ; then echo "The repository contains uncommitted changes" >&2 ; exit 1 ; fi
@if [ -n "$$(git tag -l v$(VERSION))" ] ; then echo "A tag for the specified version already exists (v$(VERSION))" >&2 ; exit 1 ; fi
@echo "Preparing release tag for version $(VERSION)"
git checkout master
Expand Down
6 changes: 3 additions & 3 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ Point the web browser of your choice to the resulting index.html file.
$ lcov --directory path/to/my/testcase --capture --output-file app.info

Note that runtime coverage data exists only after the application has
been started and stopped at least once. Otherwise, no data wil be found
been started and stopped at least once. Otherwise, no data will be found
and lcov will abort with an error mentioning that there are no data/.gcda
files.

Expand Down Expand Up @@ -334,7 +334,7 @@ New features and capabilities fall into 7 major categories:

Other options are used to focus on or to exclude certain sections
of code, as well as to do regexp replacement of file names - possibly
using case-insensitve comparison.
using case-insensitive comparison.
(Path munging is useful primarily when the build structure does
not exactly match the layout in your revision control system; this
is common in large projects with reusable components.)
Expand Down Expand Up @@ -392,7 +392,7 @@ New features and capabilities fall into 7 major categories:
In general, this provides speedup that is nearly linear in the number
of cores.
There is also an option to throttle parallelism to not exceed peak
memory consumption contraints, as well as options to enable simple
memory consumption constraints, as well as options to enable simple
profile data collection - so you can see where time is going and
thus to hint at potential optimizations. The 'spreadsheet.py'
script can be used to view generated profile data.
Expand Down
36 changes: 18 additions & 18 deletions bin/genhtml
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ sub findOwnerList
# where lineCovData = [missedCount, totalCount]
# branchCovData = [missed, total] or undef if not enabled
# functionCov = [missed, total] or undef if not enabled
# - sorted in decending order number of missed lines
# - sorted in descending order number of missed lines
my ($self, $all) = @_;

my @owners;
Expand Down Expand Up @@ -1448,7 +1448,7 @@ sub findOwnerList
# return [ [owner, lineCovData, branchCovData]] for each owner
# where lineCovData = [missedCount, totalCount, callback]
# branchCovData = [missed, total, callback] or undef if not enabled
# - sorted in decending order number of missed lines
# - sorted in descending order number of missed lines
return $self->summary()->findOwnerList($all);
}

Expand Down Expand Up @@ -1552,7 +1552,7 @@ sub findFileList
# where lineCovData = [missedCount, totalCount, OwnerDetailCallback]
# branchCovData = [missed, total, dateDetailCallback]
# or undef if not enabled
# - sorted in decending order number of missed lines
# - sorted in descending order number of missed lines
my $dirSummary = $self->[1];
my $owner = $self->[0];
my @files;
Expand Down Expand Up @@ -1677,7 +1677,7 @@ sub findFileList
# where lineCovData = [missedCount, totalCount, OwnerDetailCallback]
# branchCovData = [missed, total, dateDetailCallback]
# or undef if not enabled
# - sorted in decending order number of missed lines
# - sorted in descending order number of missed lines
my $dirSummary = $self->[2];
my $ageval = $self->[1];
my @files;
Expand Down Expand Up @@ -2075,7 +2075,7 @@ sub new
# $type in ('insert', 'equal', 'delete')
my $self = [$type, undef, undef,
['UNK', undef, undef], # line coverage data
[], # branch coverge data
[], # branch coverage data
[]
]; # function coverage
bless $self, $class;
Expand Down Expand Up @@ -2200,7 +2200,7 @@ sub _mergeBranchData

my $c = $current->getBlock($branchId);
my $d = $branchData->getBlock($branchId);
# handle case of inconsisent branch data
# handle case of inconsistent branch data
my $nc = scalar(@$c);
my $nd = scalar(@$d);
if ($nc != $nd) {
Expand Down Expand Up @@ -2487,7 +2487,7 @@ sub _findLineData
}
$linedata->lineNo('base', $base_lineNo);
} else {
# nothing walks the keylist so a prefix is sufficient to distiguish
# nothing walks the keylist so a prefix is sufficient to distinguish
# records that should be summarized but not displayed
my $dline = "<<<" . $base_lineNo;
if (!exists($lineDataMap->{$dline})) {
Expand Down Expand Up @@ -3355,7 +3355,7 @@ sub _read_udiff
$key = lc($key) if $lcovutil::case_insensitive;
if (exists($self->[UNCHANGED]->{$key})) {
# unchanged entry flag value should be 1
die("$diff_file:$.: %key already in linemap - marked unchangd"
die("$diff_file:$.: %key already in linemap - marked unchanged"
. ($file eq $key ? '' : " (substituted '$file')"))
unless $self->[UNCHANGED]->{$key};
lcovutil::ignorable_error($lcovutil::ERROR_FORMAT,
Expand Down Expand Up @@ -5408,7 +5408,7 @@ our $current_date = get_date_string(undef);

our @info_filenames; # List of .info files to use as data source
our $header_title; # Title at top of HTML report page (above table)
our $footer; # String at bootom of HTML report page
our $footer; # String at bottom of HTML report page
our $test_title; # Title for output as written to each page header
our $output_directory; # Name of directory in which to store output
our @base_filenames; # Optional: names of files containing baseline data
Expand All @@ -5423,7 +5423,7 @@ our $show_details; # If set, generate detailed directory view
our $no_prefix; # If set, do not remove filename prefix
our $show_tla; # categorize coverage data (or not)
our $show_functionProportions = 0
; # show proportion of lines/branches containted in the function whihc are hit
; # show proportion of lines/branches contained in the function which are hit
our $show_hitTotalCol; # include the 'hit' or 'missed' total count in tables
# - this is part of the 'legacy' view
# - also enabled when full differential categories are used
Expand Down Expand Up @@ -5569,7 +5569,7 @@ my %genhtml_options = (
'synthesize-missing' => \$synthesizeMissingFile,
# if 'show-owners' is set: generate the owner table
# if it is passed a value: show all the owners,
# regardless of whether thay have uncovered code or not
# regardless of whether they have uncovered code or not
'show-owners:s' => \$show_ownerBins,
'show-noncode' => \$show_nonCodeOwners,
'show-zero-columns' => \$show_zeroTlaColumns,
Expand Down Expand Up @@ -5662,7 +5662,7 @@ if ($show_tla &&
!defined($diff_filename))
) {
# no baseline - so not a differential report.
# modify some settings to gnerate corresponding RTL code.
# modify some settings to generate corresponding RTL code.
$use_legacyLabels = 1;
SummaryInfo::noBaseline();
} else {
Expand Down Expand Up @@ -5907,7 +5907,7 @@ if (0 == $exit_status) {
if (0 == $exit_status && @SummaryInfo::coverageCriteriaScript) {
# print the criteria summary to stdout:
# all criteria fails + any non-empty messages
# In addtion: print fails to stderr
# In addition: print fails to stderr
# This way: Jenkins script can log failure if stderr is not empty
my $leader = '';
if ($SummaryInfo::coverageCriteriaStatus != 0) {
Expand Down Expand Up @@ -6126,7 +6126,7 @@ sub print_overall_rate($$$$$)
# Generate a set of HTML pages from contents of .info file INFO_FILENAME.
# Files will be written to the current directory. If provided, test case
# descriptions will be read from .tests file TEST_FILENAME and included
# in ouput.
# in output.
#
# Die on error.
#
Expand Down Expand Up @@ -7181,7 +7181,7 @@ sub write_css_file()
my $ownerCovHi = "#COLOR_18"; # light green
my $ownerCovMed = "#COLOR_19"; # light yellow
my $ownerCovLo = "#COLOR_20"; # lighter red
# use same background color as file entry unless in hiearchical report
# use same background color as file entry unless in hierarchical report
my $directoryBackground = $main::hierarchical ? '#COLOR_18' : '#COLOR_06';
my $css_data = ($_ = <<"END_OF_CSS")
/* All views: initial background and text color */
Expand Down Expand Up @@ -7857,7 +7857,7 @@ END_OF_CSS
my $align = $elem eq 'td' ? "right" : "left";
$css_data .= ($_ = <<"END_OF_SPAN")

/* Source code view/table entry backround: format for lines classified as "$title" */
/* Source code view/table entry background: format for lines classified as "$title" */
$elem.tla$tla
{
text-align: $align;
Expand Down Expand Up @@ -7916,7 +7916,7 @@ END_OF_DATE_SPAN

print(CSS_HANDLE $css_data);

close(CSS_HANDLE) or die("unable to close CSS handel: $!\n");
close(CSS_HANDLE) or die("unable to close CSS handle: $!\n");
}

#
Expand Down Expand Up @@ -8165,7 +8165,7 @@ END_OF_HTML
END_OF_HTML
} else {
my $t = ucfirst($primary_key);
# a bit of a hack...just subtitute the primary key and related
# a bit of a hack...just substitute the primary key and related
# strings into the 'file heading' link - so we display the
# 'sort' widget
if ($primary_key eq 'owner' &&
Expand Down
8 changes: 4 additions & 4 deletions bin/geninfo
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ our %COMPAT_NAME_TO_VALUE = ("off" => $COMPAT_VALUE_OFF,
"on" => $COMPAT_VALUE_ON,
"auto" => $COMPAT_VALUE_AUTO,);

# Compatiblity modes
# Compatibility modes
our $COMPAT_MODE_LIBTOOL = 1 << 0;
our $COMPAT_MODE_HAMMER = 1 << 1;
our $COMPAT_MODE_SPLIT_CRC = 1 << 2;
Expand Down Expand Up @@ -719,7 +719,7 @@ OPTIONS
--erase-functions REGEXP Exclude data for functions matching REGEXP
--omit-lines REGEXP Ignore data in lines matching REGEXP
--forget-test-names Merge data for all tests names
--version-script SCRIPTNAME Call script to find revison control version
--version-script SCRIPTNAME Call script to find revision control version
ID of source file
--resolve-script SCRIPTNAME Call script to find source file frpm path
-j, --parallel [N] Use parallel processing with at most N jobs
Expand Down Expand Up @@ -1140,7 +1140,7 @@ sub gen_info(@)
}
}
# Need to balance time in child vs. time to merge child data -
# - if we hav too many children, then they finish and wait in the
# - if we have too many children, then they finish and wait in the
# queue to be merged.
# - if we have too few, then the merge time in child gets long
# build up in set to 80% of
Expand Down Expand Up @@ -2728,7 +2728,7 @@ sub process_intermediate($$$$)
}
} else {
# if .gcda and .gcno files are in the same directory, then simply
# processs in place - otherwise, link the .gcda and .gcno files
# process in place - otherwise, link the .gcda and .gcno files
# into tempdir and run from here
if (dirname($filename) eq dirname($gcno_file)) {
# Process data file in place
Expand Down
2 changes: 1 addition & 1 deletion bin/genpng
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ sub gen_png($$$$$@)
# Define colors
# overview->colorAllocate(red, green, blue)
if ($dark_mode) {
# just reverse foregrond and background
# just reverse foreground and background
# there is probably a better color scheme than this.
$col_plain_text =
$overview->colorAllocate(0xaa, 0xaa, 0xaa); # light grey
Expand Down
4 changes: 2 additions & 2 deletions bin/lcov
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ OPERATION
data (requires --add-tracefile)
--map-functions List tracefiles with non-zero coverage for
each function (requires --add-tracefile)
--intersect PATTERN Set interection with tracefiles matching
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one should be 'intersection'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

--intersect PATTERN Set intersection with tracefiles matching
glob PATTERN
--subtract PATTERN Set difference with tracefiles matching
glob PATTERN
Expand Down Expand Up @@ -542,7 +542,7 @@ OPTIONS
--forget-test-names Merge data for all tests names
--fail-under-lines MIN Exit with a status of 1 if the total line
coverage is less than MIN (summary option)
--version-script SCRIPTNAME Call script to find revison control version
--version-script SCRIPTNAME Call script to find revision control version
ID of source file
--resolve-script SCRIPTNAME Call script to find source file frpm path
-j, --parallel [NUM] Use parallel processing with at most NUM jobs
Expand Down
2 changes: 1 addition & 1 deletion bin/perl2lcov
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ foreach my $db (@ARGV) {
# However, this doesn't quite work because the truth
# table computed by Devel::Cover is sometimes ordered
# with the dependent clause after the independent
# one - and soemtimes the opposite.
# one - and sometimes the opposite.
# For the moment: punt when we don't grok
foreach my $block (@br) {
my $counts = $block->[0];
Expand Down
2 changes: 1 addition & 1 deletion example/README
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ and point a web browser into the resulting reports:

Default view:

- Point your brower to
- Point your browser to
output/index.html

Hierarchical view:
Expand Down
2 changes: 1 addition & 1 deletion example/example_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* example_mod.c
*
* Identical behaviour to 'example.c' - but with some trivial code changes
* (including this change to commment section) - to create a few differences,
* (including this change to comment section) - to create a few differences,
* for differential coverage report example.
*
*/
Expand Down
16 changes: 8 additions & 8 deletions lcovrc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ genhtml_med_limit = 75

# Ignore some errors during geninfo/lcov/genhtml processing - comma-separated
# string. Same as using "--ignore-errors a,b,c" command line option.
# See man pages for list of ignorable messsages
# See man pages for list of ignorable messages
#ignore_errors = empty,mismatch

# Stop emitting message after this number have been printed
Expand All @@ -76,7 +76,7 @@ max_message_count = 100
# (comma-separated list)
#c_file_extensions = h,c,i,C,H,I,cpp,hpp,icc,cc,hh,cxx,hxx

# maxmimum number of lines to look at, when filtering bogus branch expressions
# maximum number of lines to look at, when filtering bogus branch expressions
#filter_lookahead = 5

# if nonzero, bitwise operators '|', '&', '~' indicate conditional expressions
Expand All @@ -88,10 +88,10 @@ genhtml_line_field_width = 12
# Width of branch coverage field in source code view
genhtml_branch_field_width = 16

# width of 'owner' field in source code veiw - default is 20
# width of 'owner' field in source code view - default is 20
#genhtml_owner_field_width = 20

# width of 'age' field in source code veiw - default is 5
# width of 'age' field in source code view - default is 5
#genhtml_age_field_width = 5

# Width of overview image (used by --frames option of genhtml)
Expand Down Expand Up @@ -233,7 +233,7 @@ genhtml_desc_html=0
# and have attribute '"unexecuted_blocks": true'
#geninfo_unexecuted_blocks = 0

# Specify compatiblity modes (same as --compat option of geninfo).
# Specify compatibility modes (same as --compat option of geninfo).
#geninfo_compat = libtool=on, hammer=auto, split_crc=auto

# Adjust path to source files by removing or changing path components that
Expand Down Expand Up @@ -292,7 +292,7 @@ branch_coverage = 0
#genhtml_annotate_script = path_to_my_executable

# specify the annotation popup that will appear if user hovers over source code
# set to empy to elide tooltip
# set to empty to elide tooltip
# Substitutions:
# %d: line number
# %C: commit ID (from annotate callback - see --anotate-script entry in
Expand All @@ -309,7 +309,7 @@ branch_coverage = 0
#genhtml_criteria_script = path_to_my_executable

# specify whether you want date and/or owner information passed to your criteria
# callback - in addition to summary information, which is always retuned
# callback - in addition to summary information, which is always returned
#criteria_callback_data = date,owner

# specify when the criteria callback will be executed
Expand Down Expand Up @@ -395,7 +395,7 @@ lcov_json_module = auto
# override line default line exclusion regexp
#lcov_excl_line = LCOV_EXCL_LINE

# overide branch exclusion regexp
# override branch exclusion regexp
#lcov_excl_br_line = LCOV_EXCL_BR_LINE

# override exception branch exclusion regexp
Expand Down
Loading