Skip to content

Commit 1829ae8

Browse files
authored
Fix typos (#342)
Most of them found and fixed by codespell (https://github.com/codespell-project/codespell). Signed-off-by: Sebastian Pipping <[email protected]>
1 parent 34f05f5 commit 1829ae8

File tree

21 files changed

+55
-55
lines changed

21 files changed

+55
-55
lines changed

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ LCOV features and capabilities fall into 7 major categories:
480480

481481
See "xml2lcov --help" fir brief instructions on how to use
482482
the translator.
483-
See the Coburtura documention for directions on how to
483+
See the Coburtura documentation for directions on how to
484484
generate XML data.
485485

486486
Other languages can be integrated using a similar approach.

bin/genhtml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4221,7 +4221,7 @@ sub new
42214221
];
42224222
# we will call the $annotateObj->line(int) to collect annotate data
42234223
# for certain lines - to find out of a non-code line is in a
4224-
# continguous region by the same author, in the same SHA or etc.
4224+
# contiguous region by the same author, in the same SHA or etc.
42254225
$self->[NEXT] = shift(@{$self->[STACK]});
42264226
if (defined($self->[NEXT]) && $self->[NEXT] != 1) {
42274227
_computeContextBefore($self, 0);
@@ -4237,7 +4237,7 @@ sub _computeContextBefore
42374237
my $data = $self->[LINECOV_HASH];
42384238
my $annotate = $self->[ANNOTATE_OBJ];
42394239
# find contiguous source region which matches the select criteria.
4240-
# That might include non-code lined (e.g., commments)
4240+
# That might include non-code lined (e.g., comments)
42414241
for (my $l = $self->[NEXT] - 1; $l > $prev; --$l) {
42424242
my $lineData = $data->{$l} if exists($data->{$l});
42434243
my $annotateData = $annotate->line($l);
@@ -4246,7 +4246,7 @@ sub _computeContextBefore
42464246
$self->[ANNOTATE_OBJ]->path(), $l);
42474247
++$count;
42484248
}
4249-
# region of interest is the (possibly empty) contigous region we found
4249+
# region of interest is the (possibly empty) contiguous region we found
42504250
# plus the number of context lines
42514251
$self->[LINES_BEFORE] = $num_context_lines + $count;
42524252
}
@@ -10086,7 +10086,7 @@ sub write_file_table_entry(*$$@)
1008610086
if ($page_type eq 'owner') {
1008710087
$entry .= 'N' . $id;
1008810088
} else {
10089-
die("unexepected page type $page_type")
10089+
die("unexpected page type $page_type")
1009010090
unless $page_type eq 'date';
1009110091
$entry .= 'B' . $SummaryInfo::ageHeaderToBin{$id};
1009210092
}
@@ -13147,7 +13147,7 @@ sub write_file_table(*$$$$$$)
1314713147
SummaryInfo::LINE_DATA)
1314813148
]);
1314913149
# there might not be optional test data for some tests - that type was
13150-
# not emabled
13150+
# not enabled
1315113151
push(@results,
1315213152
[$mcdc_found,
1315313153
$mcdc_hit,

bin/geninfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2629,7 +2629,7 @@ sub intermediate_json_to_info($)
26292629
}
26302630
}
26312631
if ($conditions && @$conditions) {
2632-
#die("unexpected multiple conditons at $line") if scalar(@$conditions) > 1;
2632+
#die("unexpected multiple conditions at $line") if scalar(@$conditions) > 1;
26332633
#lcovutil::debig(1, "MDCD at $filename:$line\n");
26342634
my $mcdc = $mcdcMap->new_mcdc($fileData, $line);
26352635

bin/lcov

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ OPERATION
494494
495495
OPTIONS
496496
-i, --initial Capture initial zero coverage data
497-
--all Captuer from both .gcda and lone .gcno files
497+
--all Capture from both .gcda and lone .gcno files
498498
-t, --test-name NAME Specify test name to be stored with data
499499
-o, --output-file FILENAME Write data to FILENAME instead of stdout
500500
-d, --directory DIR Use .da files in DIR instead of kernel

bin/py2lcov

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#
3232
# arguably, should do this in Perl so we could use the lcovutil module utilities
3333
# In the meantime: suggested use model is to translate the python XML using this
34-
# utility, then read it back into lcov for additonal processing.
34+
# utility, then read it back into lcov for additional processing.
3535
#
3636
# @todo figure out/enhance Coverage.py to characterize branch expressions
3737
# @todo perhaps this should be integrated into the Coverage.py module itself.
@@ -62,7 +62,7 @@ function data because the 'def myFunc(...)' line will acquire a 'hit' count
6262
of 1 because the python interpreter considers the 'def' to have been executed
6363
when the line is interpreted (i.e., when the function is defined).
6464
This will generate an 'inconsistent' error if the function is not executed in
65-
your tests becasue the (derived) function will have a zero hit count but the
65+
your tests because the (derived) function will have a zero hit count but the
6666
first line of the function has a non-zero count.
6767
Best practice is to either always specify '--no-functions' or never specify
6868
'--no-functions'.

bin/xml2lcovutil.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#
2525
# Arguably, this should be done in Perl so we could use lcovutil module utilities.
2626
# In the meantime: suggested use model is to translate the XML using this
27-
# utility, then read it back into lcov for additonal processing.
27+
# utility, then read it back into lcov for additional processing.
2828
#
2929
# @todo figure out how to characterize branch expressions in XML data
3030

@@ -84,7 +84,7 @@ class ProcessFile:
8484
8585
- Coverage data merge is problematic.
8686
87-
o For eample: you have two testcase XML files, each of which hit
87+
o For example: you have two testcase XML files, each of which hit
8888
4 of 8 branches on some line.
8989
9090
o Does that mean you hit 4 of them (both tests exercised the same

lib/lcovutil.pm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ sub do_mangle_check
952952
sub configure_callback
953953
{
954954
# if there is just one argument, then assume it might be a
955-
# concatentation - otherwise, just use straight.
955+
# concatenation - otherwise, just use straight.
956956
my $cb = shift;
957957
my @args =
958958
1 == scalar(@_) ?
@@ -1895,7 +1895,7 @@ sub parse_expected_message_counts(@)
18951895
($ignore ? ': ignoring.' : ''));
18961896
next;
18971897
}
1898-
# check if syntax look resonable
1898+
# check if syntax look reasonable
18991899
my $expr = $2;
19001900
if (Scalar::Util::looks_like_number($expr)) {
19011901
$expected_message_count[$id] = "%C == $expr";
@@ -1948,7 +1948,7 @@ sub explain_once
19481948
# once - e.g., when two or more child processes generate them
19491949
# simultaneously.
19501950
# They will eventually update the parent process state such that
1951-
# subseqent children won't report the issues.
1951+
# subsequent children won't report the issues.
19521952
my $key = shift;
19531953
if (!exists($explainOnce{$key})) {
19541954
$explainOnce{$key} = 1;
@@ -7443,7 +7443,7 @@ sub _filterFile
74437443
# Note: this is checking the version of the 'current' file - even if
74447444
# we are actually reading the baseline version.
74457445
# - This is what we want, as the 'baseline read' is actually recovering/
7446-
# recreating the baseline source fromthe current source and the diff.
7446+
# recreating the baseline source from the current source and the diff.
74477447
# - We already checked that the diff and the coverage DB baseline/current
74487448
# version data is consistent - so filtering will be accurate as long as
74497449
# we see the right 'current' source version.
@@ -9176,7 +9176,7 @@ sub merge
91769176
my $readSourceFile;
91779177
my $t = ref($_[0]);
91789178
if (!defined($_[0]) || '' eq $t) {
9179-
# backward compatiblity - arg is undefined or is a filename
9179+
# backward compatibility - arg is undefined or is a filename
91809180
$readSourceFile = ReadCurrentSource->new();
91819181
shift unless defined($_[0]);
91829182
} else {

man/genhtml.1

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -528,14 +528,14 @@ and
528528

529529
where
530530
.I $hash
531-
is a reference to a hask of key/value pairs which are meaningful to you.
531+
is a reference to a hash of key/value pairs which are meaningful to you.
532532
This data is stored in the
533533
.I profile
534534
database. See the 'profile' section in man
535535
.B lcovrc(5)
536536
for more information.
537537

538-
If your callback is not a perl module - for example, is a shellscript - then it should return a string such that the first word on each line is the key and the remainder is the associated data. If a key is repeated, then the corresponding data strings are concatentated, separated by newline.
538+
If your callback is not a perl module - for example, is a shellscript - then it should return a string such that the first word on each line is the key and the remainder is the associated data. If a key is repeated, then the corresponding data strings are concatenated, separated by newline.
539539

540540
If you want to record only system information, then a shell callback is likely sufficient. If you want to record any tool-specific/internal information, then you will need to implement a perl module so that your callback will be able to access the information.
541541
Note that the constructor of your
@@ -614,7 +614,7 @@ path or any parameter contains spaces or shell special characters.
614614
.IP 3. 3
615615
If an option is specified multiple times, then the parameters are
616616
.I not
617-
split, but are simply concatentated to form the command line - see the examples, below.
617+
split, but are simply concatenated to form the command line - see the examples, below.
618618
.br
619619
For simplicity and ease of understanding: your command line should
620620
pass all arguments individually, or all as a comma-separated list - not a mix of the two.
@@ -2509,7 +2509,7 @@ Use this switch if you want some artifact of coverage report generation -
25092509
.I e.g.,
25102510
the coverage criteria check or the serialized coverage DB,
25112511
.B etc.
2512-
- but do not need teh coverage report HTML itself.
2512+
- but do not need the coverage report HTML itself.
25132513

25142514

25152515
.RE
@@ -2738,17 +2738,17 @@ whether the condition was sensitized or not. Conditions are shown in the followi
27382738

27392739
.RS 3
27402740
.IP T: 3
2741-
True sense of subexpression was sensitized: if this subexpression's value had been false, then the condition resut would have been different.
2741+
True sense of subexpression was sensitized: if this subexpression's value had been false, then the condition result would have been different.
27422742
.IP t: 3
27432743
True sense of subexpression was
27442744
.B not
2745-
sensitized: the conditon result would not change if the subexpression value was different.
2745+
sensitized: the condition result would not change if the subexpression value was different.
27462746
.IP F:
2747-
False sense of subexpression was sensitized: if this subexpression's value had been true, then the condition resut would have been different.
2747+
False sense of subexpression was sensitized: if this subexpression's value had been true, then the condition result would have been different.
27482748
.IP f:
27492749
False sense of subexpression was
27502750
.B not
2751-
sensitized: the conditon result would not change if the subexpression value was different.
2751+
sensitized: the condition result would not change if the subexpression value was different.
27522752
.RE
27532753

27542754
Note that branch and MC/DC coverage are identical if the condition is
@@ -2779,7 +2779,7 @@ constituent expression changed from true to false (termed the 'true' sense, abov
27792779
.br
27802780
For example, the expression
27812781
.I A || B
2782-
is sensitve to
2782+
is sensitive to
27832783
.I A==true
27842784
when
27852785
.I B==false,
@@ -2981,7 +2981,7 @@ function execution count record (
29812981
.I FN
29822982
).
29832983
.PP
2984-
.IP "(enhanced LCOV fomat)" 3
2984+
.IP "(enhanced LCOV format)" 3
29852985
function alias record (
29862986
.I FNA
29872987
) without matching function declaration record (
@@ -3004,7 +3004,7 @@ internal tool issue detected. Please report this bug along with a testcase.
30043004

30053005
.IP mismatch: 3
30063006
Incorrect or inconsistent information found in coverage data and/or source code - for example,
3007-
the souce code contains overlapping exclusion directives.
3007+
the source code contains overlapping exclusion directives.
30083008

30093009
.PP
30103010

@@ -3436,7 +3436,7 @@ that implements a check for "UNC + LBC + UIC == 0".
34363436

34373437
.I \*[scriptdir]/threshold.pm
34383438
.RS
3439-
Sample script written as Perl module to check for miminum acceptable
3439+
Sample script written as Perl module to check for minimum acceptable
34403440
line and/or branch and/or and/or MC/DC function coverage.
34413441
For example, the
34423442
.RS

man/geninfo.1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ by default.
660660
Follow links when searching .gcda files, as well as to decide whether a
661661
particular (symbolically linked) source directory is "internal" to the project or not - see the
662662
.I \-\-no\-external
663-
option, above, for more inforamtion.
663+
option, above, for more information.
664664
The
665665
.I \-\-follow command line option is equivalent to the
666666
.I geninfo_follow_symlinks
@@ -928,7 +928,7 @@ internal tool issue detected. Please report this bug along with a testcase.
928928

929929
.IP mismatch: 3
930930
Incorrect information found in coverage data and/or source code - for example,
931-
the souce code contains overlapping exclusion directives.
931+
the source code contains overlapping exclusion directives.
932932
.PP
933933

934934
.IP missing: 3
@@ -1542,7 +1542,7 @@ is the line number where the condition is found - and is expected to be a non-ze
15421542
.I <groupSize>
15431543
and
15441544
.I <index>
1545-
serve to uniquely define a particular elemenet in the expression tree of a particular conditional found on the associated line.
1545+
serve to uniquely define a particular element in the expression tree of a particular conditional found on the associated line.
15461546
.br
15471547
Within a particular line and group,
15481548
.I <index>
@@ -1555,7 +1555,7 @@ is either
15551555
.I "f"
15561556
or
15571557
.I "t",
1558-
indicating whether the condition is sensitive to the indicated change - that is, does the condition outcome change if the corresponging changes from 'false' to 'true' or from 'tru' to 'false, respectively.
1558+
indicating whether the condition is sensitive to the indicated change - that is, does the condition outcome change if the corresponding changes from 'false' to 'true' or from 'tru' to 'false, respectively.
15591559

15601560

15611561
.I <taken>
@@ -1566,7 +1566,7 @@ as the number of times that the expression was sensitized where others may treat
15661566
as a boolean - 1:sensitized or 0: not sensitized.
15671567

15681568
.I <expression>
1569-
is an arbitary string, intended to be a meaningful string which will help the user to understand the condition context - see below.
1569+
is an arbitrary string, intended to be a meaningful string which will help the user to understand the condition context - see below.
15701570
.I <expression>
15711571
appears in the 'tooltip' popup of the associated MC/DC condition in the
15721572
.B genhtml

man/lcov.1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -777,11 +777,11 @@ One or more
777777
.I \-\-substitution
778778
patterns and/or a
779779
.I \-\-resolve-script
780-
may be specified. When multiple paterns are specified, they are applied in the order specifed, substitution patterns first followed by the resolve callback.
780+
may be specified. When multiple patterns are specified, they are applied in the order specified, substitution patterns first followed by the resolve callback.
781781
The file search order is:
782782
.RS
783783
.IP 1. 3
784-
Look for file name (unmodifed).
784+
Look for file name (unmodified).
785785
.br
786786
If the file exits: return it.
787787
.PP
@@ -791,7 +791,7 @@ Apply all substitution patterns in order - the result of the first pattern is us
791791
If a file corresponding to the resulting name exists: return it.
792792
.PP
793793
.IP 3. 3
794-
Apply the 'resolve' callback ot the final result of pattern substituions.
794+
Apply the 'resolve' callback ot the final result of pattern substitutions.
795795
.br
796796
If a file corresponding to the resulting name exists: return it.
797797
.PP

0 commit comments

Comments
 (0)