Comments (4)
I am also encountering this problem.
Looking at the python code and my case, I believe it has to do with the fact that if function_name is not a simple/single word and contains spaces, ::, << >> etc (in the case of templatize code, the dictionary will fail to find the item.
I am using 1.4
from lcov-to-cobertura-xml.
Yep exactly the same from me, I'm on verison 1.4. I'm trying to use this on some objective-c code.
Function names can take the form FN:36,-[className methodName: someMoreStuff:]
so when you make the line_parts array by splitting on ":" it actually splits the function name into bits.
When you come round to setting the function name variable you pick the last item in the line_parts array to work on but it can be just "]".
Maybe a work around could be splitting on ":" to initially get the input_type but then rejoining all but the first element back up to get an array of line parts as if there was only ever one colon on the line
Something like:
line_parts = [line_parts[0]] + [":".join(line_parts[1:])]
from lcov-to-cobertura-xml.
Ahh no - I see @nyue has already put a way better fix - its just not released yet. I'll just clone from here rather than pip installing.
Didn't know you could pass a second argument to split to limit the number. Nice.
from lcov-to-cobertura-xml.
I have released @nyue's fix and another one in v1.5 -- pushed to PyPI last night.
Please re-open this issue if anyone's problem's aren't handled.
from lcov-to-cobertura-xml.
Related Issues (20)
- Conditionals and method coverage always shows 0/0 HOT 5
- Pip install and running command results command not found HOT 2
- Python 3 error with --demangle HOT 1
- Discrepancy with genhtml HOT 1
- Needs a release HOT 2
- Missing function & statement metrics HOT 2
- Segmentation fault HOT 2
- Hangs in python3 with --demangle HOT 4
- CLI entry point regression HOT 5
- Cannot import name 'LcovCobertura' from 'lcov_cobertura' (unknown location) HOT 6
- gitlab-ci can't read .xml file, which is conversion by lcov-to-cobertura-xml HOT 3
- Support multiple lcov files as input HOT 1
- Add parameter to set maximum file file size (and split the output)
- distutils.spawn is deprecated, gonna be removed HOT 2
- Minidom giving memory error
- How to use lcov_cobertura file from a LICENSE perspective?
- Publish to PyPI
- Python 3 compatibility
- some problems using it from command line HOT 1
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-to-cobertura-xml.