Tufin / oasdiff

OpenAPI Diff and Breaking Changes
https://www.oasdiff.com
Apache License 2.0
663 stars 59 forks source link

refactor get operation #568

Closed reuvenharrison closed 1 month ago

reuvenharrison commented 2 months ago

Replace Operations()[operation] by GetOperation(operation) which is cheaper.

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 93.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 85.59%. Comparing base (c322a59) to head (2a6a585).

Files Patch % Lines
checker/check_api_removed.go 66.66% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #568 +/- ## ========================================== + Coverage 84.80% 85.59% +0.79% ========================================== Files 227 227 Lines 12963 10830 -2133 ========================================== - Hits 10993 9270 -1723 + Misses 1563 1153 -410 Partials 407 407 ``` | [Flag](https://app.codecov.io/gh/Tufin/oasdiff/pull/568/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tufin) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/Tufin/oasdiff/pull/568/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tufin) | `85.59% <93.33%> (+0.79%)` | :arrow_up: | 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=Tufin#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.