Comments (6)
Hmm.
Is datetime installed? (Check cpan).
Which lcov version? (2.1 release or TOT?)
Likely won't tell us anything, but you can also run as
$ LCOV_SHOW_LOCATION=1 per2lcov ...
Which should show the offending line number.
from lcov.
The offending line is
Line 199 in 3abff7c
The contents of $f->items
in the loop on my env is ("condition", "subroutine", "time", "branch", "statement")
.
lcov was built via git pull, using master at time of writing.
cover --version
/usr/bin/cover version 1.38
perl -MDateTime -E 'say DateTime->VERSION'
1.59
perl2lcov --version
perl2lcov: LCOV version 2.1-7.g3abff7c
from lcov.
Thanks.
I figured out the issue - will push a fix shortly.
Meantime: the easiest workaround is to turn that 'die' into a warning or ignorable_error.
(Earlier on: I wanted to die on anything unexpected. That may no longer be a Good Idea - but, on the other hand, there are clearly parts of the Devel::Cover datastructure that I don't understand as well as I thought I did.)
from lcov.
Attempting to clean up the issue list.
I think that this bug is fixed in the above commit.
If so: please close the issue or describe the remaining problems that need to be addressed.
Thanks.
from lcov.
Meantime: the easiest workaround is to turn that 'die' into a warning or ignorable_error.
An even easier workaround may be to edit your cover
command line to include only the perl cover types supported by perl2lcov: perl -MDevel::Cover=-db,$COVER_DB,-coverage,statement,branch,condition,subroutine ...
(i.e., excluding pod
, time
and path
which will hit the die
, in the perl2lcov
version in the lcov/2.1 release).
Not sure if it is easier to modify your regress environment or the perl code - but more options are likely better than fewer.
from lcov.
Closing this issue now. I believe it was fixed in the above commit (SHA e10f1f0)
If there is still a problem, please feel free to reopen this issue or file a new one.
Please describe the problem in detail and provide a testcase which illustrates the issue, if possible.
from lcov.
Related Issues (20)
- Duplicate folder structure (--prefix does not help) HOT 2
- gcov error:std::bad_alloc HOT 8
- lcov fails with gcc 14 HOT 1
- genhtml package removed from PyPI HOT 1
- RPM 2.1-1 does not install on Rocky Linux 8 or Centos7 HOT 1
- Unable to generate gcda file for cc_library_shared module HOT 4
- inconsistent branch coverage summary HOT 1
- Build of example fails on Ubuntu 22.04.4 LTS due to Makefile using SHELL of /bin/sh (softlink to /bin/dash) HOT 1
- Build of examples fails if part of path is a softlink HOT 4
- Option geninfo_external from a user-provided lcovrc file gets ignored HOT 4
- Incorrect #line directives cause Perl warnings HOT 1
- lcov fails with "(inconsistent) mismatched end line" for googletest code HOT 1
- lcov --no-external behaves incorrectly with 2 or more -d
- path mismatch between diff-file and baseline/current info/dat file HOT 23
- Problems with differential reporting HOT 4
- Possible root causes of geninfo 'mismatched end line for main at start.c' ? HOT 7
- gitdiff should strip a/ b/ prefixes from --- +++ lines HOT 6
- Differences between `coverage lcov` and `py2lcov` for consideration HOT 3
- I see functions as uncovered although they are covered HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lcov.