Граф коммитов

41 Коммитов

Автор SHA1 Сообщение Дата
Owen Kirby dbc39c323c
Handle floats gracefully when expecting u64 in parser.rs (#803)
* Handle floats gracefully when expecting u64 in parser.rs

* Fix linter issues in parser.rs

* Add test gcda files from mozillavpn project

* More linter fixes.

* Test parsing gcov json file with floating point values

The gcov json file comes from gcov 9

Co-authored-by: Marco Castelluccio <mcastelluccio@mozilla.com>
2022-04-01 23:58:42 +02:00
Marco Castelluccio 9ad23c1f4e Build profraws_to_lcov test files at runtime
Fixes #794
2022-03-15 16:46:06 +01:00
Marco Castelluccio 11d8f1a838 Update source-based profile used during tests
Fixes #786
2022-03-15 12:43:59 +01:00
Marco Castelluccio 2bbe1201c3 Update source-based profile used during tests
Fixes #727
2021-11-30 22:56:27 +01:00
calixteman 683b8434db
Update reader.rs to be able to read *all* the recent gcno/gcda files (#522)
* it aims to reflect all the recent changes in GCOV.cpp (see llvm tree)
* endianness is correctly detected and handled
* compute counters using spanning tree and Kirchoff's law
* adapt the reader to the version
2021-01-21 18:10:43 +01:00
Vitor Enes 33ecb24478
Do not ignore subfolder with name equal to root. (#546)
Before this commit, a subfolder with the same name as the root/source
folder would be ignored from the coverage reports (see
https://github.com/mozilla/grcov/issues/483). This was occurring because
the ancestor of the subfolder was being pruned (because it matched the
end of the source folder) in the method used to guess the absolute path.
This resulted in an incorrect guess of the absolute path.

With this commit, we first check whether the join of the subfolder
relative path with the source folder exists, and if so, return it as the
guess of the absolute path. If the join doesn't exist, we use the
previous guess method.
2020-12-17 00:01:16 +01:00
Marco Castelluccio c619272b55
Support parsing source-based coverage artifacts (#512)
* Support parsing source-based coverage artifacts

Fixes #509

* Update docs for source-based coverage

* Show example of how to use source-based coverage on Travis
2020-11-23 18:22:36 +01:00
Jonathan Dickinson 9d8f730f7b
Exclusion Patterns for Lines and Branches (#416)
* Fix tests on Windows

* Fix non-compiling bench

* Add line and branch exclusion

Adds line and branch exclusion, following the names of the vars in
lcovrc. The lines are removed during path rewriting (as the full path is
resolved during this phase).

Dangling regions are permitted for e.g. `mod tests {`

* Fix formatting on touched files

* PR Nits and Build Improvements

Use new functionality to exclude `#[derive(` from bootstrapped codecov
checks.

* Implement filter parallelism

* Fix formatting

* Make arg names consistent with existing args

* Properly fix names

* Properly retrieve arg names

* Implement PR feedback.

* Fix cargo lock.

* PR feedback

* PR feedback and fix formatting on touched files

* Remove matches and fix remaining lines

Co-authored-by: Jonathan Dickinson <jonathanD@k2.com>
2020-05-04 11:06:54 +02:00
Marco Castelluccio b985e91c0a
Remove workaround for the duplicate top-level bug (#369)
Since the JSVM bug (https://bugzilla.mozilla.org/show_bug.cgi?id=1597997) has been fixed.

Fixes #359, by reverting 07e8f40b32 and a54ae62fc1
2020-01-07 11:52:59 +01:00
Marco Castelluccio a54ae62fc1
Add a workaround for a JSVM bug causing many functions to be named 'top-level' (#358)
https://bugzilla.mozilla.org/show_bug.cgi?id=1597997
2019-12-18 11:35:05 +01:00
Marco Castelluccio 9622b305a8 Add some more pre-commit checkers 2019-12-12 14:53:20 +01:00
calixteman 5d905d3503 Add an output format for FuzzManager (#286) 2019-05-14 12:25:43 +02:00
calixteman b016df440e Map partial paths only for Java files (#264) 2019-03-25 15:15:53 +01:00
calixteman 798640f629
Reader (#230)
* Add a rust gcno/gcda reader

* Forget to remove debug stuff

* Chech for funtion execution only one time

* Fix an error in cycle stuff

* Sort the destination edges

* Rethrow errors from write!

* Plug the new reader and remove all the LLVM stuff

* Remove useless stuff and improve error msg

* Fix tests

* Remove references to llvm-config

* Don't remove an empty line

* Change llvm@7 to llvm for osx build

* Don't download llvm for OSX
2019-01-14 10:28:16 +01:00
calixteman 41d69126e0 Filter jacoco and info files (#172) 2018-09-27 12:51:17 +01:00
Gabriel Vîjială a5e886f5d4 Pick up xml files in the producer (#142) 2018-06-29 11:48:58 +01:00
Gabriel Vîjială e702aa1c33 Add support for parsing JaCoCo XML reports (#136) 2018-06-27 14:52:31 +01:00
Calixte Denizet f20cd10704 Support reading input files from a mix of directories and ZIP files 2018-06-26 11:06:29 +01:00
calixteman 36b1e99709 Improve perf in avoiding temp gcov file (#114) 2018-05-25 15:37:15 -07:00
calixteman 94453d071d Improve perf in passing gcno/gcda buffers into LLVM parser (#110) 2018-05-24 13:12:36 -07:00
calixteman 79bec5f21f Merge files with same absolute path and different relative paths in the same bucket (#103) 2018-05-15 15:37:35 +02:00
Marco Castelluccio 58276a0206 Add test support files 2018-05-08 14:25:42 +02:00
Marco Castelluccio 7ba881943b Add example Jacoco artifact 2018-04-19 02:11:06 +02:00
Marco Castelluccio d12980b628 Replace unwraps with expects to be more verbose in case of errors 2018-01-05 11:33:58 +01:00
Marco Castelluccio 796758bfb1 Test reading GCOV file containing a Rust function using generics with two parameters 2017-12-23 15:44:47 +01:00
Marco Castelluccio ac3b4c8126 Don't fail when a LCOV info file contains empty lines 2017-12-22 17:26:19 +01:00
Marco Castelluccio c4d7b4e390 Add missing test file 2017-12-21 23:21:32 +01:00
Marco Castelluccio 4d9754757c Test parsing 'old format' gcov file with branches 2017-11-05 17:38:32 +01:00
Marco Castelluccio 434823655f Don't fail when the gcov file is not UTF-8 2017-11-05 17:03:45 +01:00
Marco Castelluccio 3b5cb9f6c0 Add symlink test support files 2017-10-19 11:58:53 +01:00
Marco Castelluccio 993156f3a3 Assert that the gcda file exists when it is expected to exist 2017-10-18 20:07:06 +01:00
Marco Castelluccio 631b320b42 Don't ignore gcno files that are not associated with any gcda file.
Fixes #42
2017-10-18 19:25:13 +01:00
Marco Castelluccio 76b82f7be7 Add test with a lcov file containing a function name with commas 2017-06-17 01:13:48 +01:00
Marco Castelluccio 259146e193 Support getting the path mapping files directly from the ZIP file or from the directory containing the GCNO and GCDA files, when the --path-mapping option is not specified 2017-05-29 13:41:06 +01:00
Marco Castelluccio 87e6dd52ab Add files needed for lcov parsing tests 2017-05-19 23:05:59 +02:00
Marco Castelluccio 92c3916056 Support passing ZIP files as inputs, instead of directories 2017-03-13 19:39:33 +01:00
Marco Castelluccio ff24d97ac0 Support parsing gcda/gcno files from multiple directories at the same time 2017-03-06 11:09:04 +01:00
Marco Castelluccio 858e43173a Remove unused file 2017-03-05 01:38:59 +01:00
Marco Castelluccio b76914295b Add missing test files 2017-03-03 21:02:40 +01:00
Marco Castelluccio bbb36f2fe6 Add some test cases from Firefox 2017-03-01 10:45:01 +00:00
Marco Castelluccio 9f447efd1d Walk the tree finding gcda files; parse them using 'gcov'; parse the 'gcov' output and aggregate the results and output them in the format used by ActiveData-ETL 2017-03-01 01:16:32 +00:00