Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java: Add test for XML extraction with GBK charset #18554

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

smowton
Copy link
Contributor

@smowton smowton commented Jan 21, 2025

No description provided.

@Copilot Copilot bot review requested due to automatic review settings January 21, 2025 17:44
@smowton smowton requested a review from a team as a code owner January 21, 2025 17:44
@github-actions github-actions bot added the Java label Jan 21, 2025

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 9 changed files in this pull request and generated no comments.

Files not reviewed (6)
  • java/ql/integration-tests/java/maven-sample-xml-mode-all-gbk-encoding/pom.xml: Language not supported
  • java/ql/integration-tests/java/maven-sample-xml-mode-all-gbk-encoding/source_archive.expected: Language not supported
  • java/ql/integration-tests/java/maven-sample-xml-mode-all-gbk-encoding/src/main/resources/my-app.properties: Language not supported
  • java/ql/integration-tests/java/maven-sample-xml-mode-all-gbk-encoding/src/main/resources/page.xml: Language not supported
  • java/ql/integration-tests/java/maven-sample-xml-mode-all-gbk-encoding/test.expected: Language not supported
  • java/ql/integration-tests/java/maven-sample-xml-mode-all-gbk-encoding/test.ql: Language not supported
Comments suppressed due to low confidence (3)

java/ql/integration-tests/java/maven-sample-xml-mode-all-gbk-encoding/src/test/java/com/example/AppTest.java:18

  • This test is not meaningful and does not cover any real behavior. It should test actual functionality.
assertTrue( true );

java/ql/integration-tests/java/maven-sample-xml-mode-all-gbk-encoding/src/main/java/com/example/App.java:20

  • [nitpick] The error message is unclear. Consider changing it to: "Wrong maven version, expected '" + expectedVersion + "' but got '" + observedVersion + "'. Maven home: " + mavenHome".
System.err.println("Wrong maven version, expected '" + expectedVersion + "' but got '" + observedVersion + "'" + mavenHome);

java/ql/integration-tests/java/maven-sample-xml-mode-all-gbk-encoding/src/main/java/com/example/App.java:26

  • [nitpick] The error message could be clearer. Consider changing it to: "Wrong command line, expected '" + commandMatcher + "' but got '" + command + "'."
System.err.println("Wrong command line, '" + command + "' does not match '" + commandMatcher + "'");

Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant