vrjdev opened a new pull request, #57944:
URL: https://github.com/apache/spark/pull/57944

   ### What changes were proposed in this pull request?
   Adds unit tests for `ClientArguments.fromCommandLineArgs` in 
`KubernetesClientApplication.scala`, covering all supported command-line flags 
and its error paths.
   
   ### Why are the changes needed?
   This is a small, pure function with zero direct test coverage. The sibling 
`Client` class in the same file is thoroughly tested via `ClientSuite.scala`, 
but `ClientArguments`' own parsing logic - including its error paths (missing 
`--main-class`, an unrecognized flag, a trailing flag with no value) - was 
untested.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### How was this patch tested?
   New unit tests in `ClientArgumentsSuite.scala`, run locally via `build/sbt 
-Pkubernetes 'kubernetes/testOnly *ClientArgumentsSuite'` - all 11 tests pass.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   Generated-by: Claude Sonnet 5


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to