Skip to content

Conversation

@JivkoKelchev
Copy link
Contributor

@JivkoKelchev JivkoKelchev commented Sep 11, 2025

Description:

  • Updates YahcliTestBase#parseArgs() to support multi-word string values parsing
  • Added DualPrintStream so system.out output is not only captured, but logged to the console as well.

Related issue(s):

Fixes #

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Zhivko Kelchev <[email protected]>
@JivkoKelchev JivkoKelchev added this to the v0.67 milestone Sep 11, 2025
@JivkoKelchev JivkoKelchev self-assigned this Sep 11, 2025
@lfdt-bot
Copy link

lfdt-bot commented Sep 11, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

@codecov
Copy link

codecov bot commented Sep 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@                       Coverage Diff                        @@
##             20994-yahcli-param-unit-tests   #21034   +/-   ##
================================================================
  Coverage                                 ?   71.23%           
  Complexity                               ?    24198           
================================================================
  Files                                    ?     2669           
  Lines                                    ?   103294           
  Branches                                 ?    10750           
================================================================
  Hits                                     ?    73585           
  Misses                                   ?    25669           
  Partials                                 ?     4040           

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codacy-production
Copy link

codacy-production bot commented Sep 11, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
Report missing for 9f9cd3c1
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (9f9cd3c) Report Missing Report Missing Report Missing
Head commit (2cb4726) 102707 77184 75.15%

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#21034) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Footnotes

  1. Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

@JivkoKelchev JivkoKelchev marked this pull request as ready for review September 12, 2025 13:01
@JivkoKelchev JivkoKelchev requested a review from a team as a code owner September 12, 2025 13:01
}
}

// TODO: check if this is needed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove

return commandLine.parseArgs(args.split(" "));
List<String> result = new ArrayList<>();
// Match and preserve quoted strings while splitting by whitespace outside of quotes
Pattern pattern = Pattern.compile("\"([^\"\\\\]|\\\\.)*\"|'([^'\\\\]|\\\\.)*'|\\S+");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: we can extract this to a static constant so we don't have to .compile(...) every time, which is relatively expensive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants