Fraunhofer-AISEC / codyze

Codyze is a static analyzer for Java, C, C++ based on code property graphs
https://www.codyze.io
Apache License 2.0
87 stars 18 forks source link

Fix Windows Paths in Coko Tests #853

Closed CodingDepot closed 6 months ago

CodingDepot commented 6 months ago

Complementing #836, this PR fixes more cases of the Path constructor being used on absolute windows paths.

Additionally, the import statement in Coko source code examples relies on invariant Path separators (forward slashes), which is now also properly applied.

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 77.04%. Comparing base (890f615) to head (d827da2). Report is 1 commits behind head on main.

:exclamation: Current head d827da2 differs from pull request most recent head 99db8bc. Consider uploading reports for the commit 99db8bc to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #853 +/- ## ========================================= Coverage 77.04% 77.04% Complexity 250 250 ========================================= Files 59 59 Lines 1895 1895 Branches 265 265 ========================================= Hits 1460 1460 Misses 314 314 Partials 121 121 ``` | [Flag](https://app.codecov.io/gh/Fraunhofer-AISEC/codyze/pull/853/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Fraunhofer-AISEC) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/Fraunhofer-AISEC/codyze/pull/853/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Fraunhofer-AISEC) | `77.04% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Fraunhofer-AISEC#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.