GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix: return error for malformed --extension flag values by Ankitsinghsisodya · Pull Request #3852 · knative/func Conversation
Contributor
Problem
Changes
Testing
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. - Added `extensionsMap` method to `invokeConfig` to parse key=value extensions and return a map. - Introduced error handling for malformed extension entries. - Created unit tests `TestInvokeExtensionsMapValid` and `TestInvokeExtensionsMapMalformed` to validate the parsing logic and error conditions. This enhances the robustness of the extension handling in the invoke command.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pull request overviewNote Copilot was unable to run its full agentic suite in this review. Adds strict parsing/validation for Changes:
Reviewed changesCopilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Ankitsinghsisodya
force-pushed
the
fix/extensionsmap-malformed-input
branch
from
788bb83 to
3fbb349
Compare
- Renamed `extensionsMap` method to `parseExtensions` for clarity. - Enhanced validation to check for empty keys in extension entries. - Updated unit tests to cover cases for missing '=' and empty keys in extensions. This change improves the robustness and clarity of extension parsing in the invoke command.
|
There was an error while loading. Please reload this page.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@ ## main #3852 +/- ## ========================================== + Coverage 53.44% 53.47% +0.02% ========================================== Files 200 200 Lines 23450 23455 +5 ========================================== + Hits 12533 12542 +9 + Misses 9662 9659 -3 + Partials 1255 1254 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
/approve |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Ankitsinghsisodya, matejvasek The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
/ok-to-test |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.