-
Notifications
You must be signed in to change notification settings - Fork 1
🧪 Unit tests for UTF8Util::decodeSafe and build fixes #20
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
🧪 Unit tests for UTF8Util::decodeSafe and build fixes #20
Conversation
…one compilation - Implemented comprehensive unit tests for UTF8Util::decodeSafe in tests/test_utf8util_unit.cpp. - Added missing standard library headers (<cstdint>, <utility>, <string>, <algorithm>, <limits>, <sstream>) to UTF8Util.cpp, rect.h, and rect.cpp. - Updated tests/test_utf8util_unit.cpp to support standalone compilation by optionally excluding psymp3.h. - This ensures that UTF8Util and Rect can be compiled and tested independently of external dependencies like SDL or TagLib. Co-authored-by: segin <[email protected]>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…frastructure - Implemented comprehensive unit tests for `UTF8Util::decodeSafe` in `tests/test_utf8util_unit.cpp`. - Added missing standard library headers to `UTF8Util.cpp`, `rect.h`, and `rect.cpp` to support standalone compilation. - Upgraded deprecated GitHub Actions to latest versions (@v4 for `upload-artifact` and `cache`, @v5 for `setup-python`, @v7 for `github-script`). - Fixed Claude Code Action configuration by adding `github_token` and updating permissions to include `pull-requests: write` and `issues: write`. - Verified that all unit tests pass in a standalone environment. Co-authored-by: segin <[email protected]>
|
Claude finished @segin's task —— View job Code Review CompleteI've thoroughly reviewed this PR which adds unit tests for ✅ StrengthsExcellent Test Coverage for
|
…frastructure (v2) - Implemented comprehensive unit tests for `UTF8Util::decodeSafe` in `tests/test_utf8util_unit.cpp`. - Added missing standard library headers to `UTF8Util.cpp`, `rect.h`, and `rect.cpp` to support standalone compilation. - Upgraded deprecated GitHub Actions to latest versions (@v4 for `upload-artifact` and `cache`, @v5 for `setup-python`, @v7 for `github-script`). - Fixed Claude Code Action configuration by adding `github_token` and updating permissions to include `pull-requests: write` and `issues: write`. - Removed missing `libvorbisfile-dev` dependency from CI workflow (provided by `libvorbis-dev` on Ubuntu 24.04). - Verified that all unit tests pass in a standalone environment. Co-authored-by: segin <[email protected]>
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
…pendencies - Implemented comprehensive unit tests for `UTF8Util::decodeSafe` in `tests/test_utf8util_unit.cpp`. - Fixed non-standard `uint8_t` array initialization in tests to ensure portability. - Added missing standard library headers to `UTF8Util.cpp`, `rect.h`, and `rect.cpp` for standalone compilation. - Upgraded GitHub Actions to latest versions and fixed CI permissions for Claude Code Action. - Resolved CI build failures on Ubuntu 24.04 by adding `libcurl4-openssl-dev` and removing redundant/missing `libvorbisfile-dev`. - Ensured consistent dependency installation across CI workflows. Co-authored-by: segin <[email protected]>
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
…pendencies - Implemented comprehensive unit tests for `UTF8Util::decodeSafe` in `tests/test_utf8util_unit.cpp`. - Fixed non-standard `uint8_t` array initialization in tests to ensure portability. - Added missing standard library headers to `UTF8Util.cpp`, `rect.h`, and `rect.cpp` for standalone compilation. - Upgraded GitHub Actions to latest versions and fixed CI permissions for Claude Code Action. - Resolved CI build failures on Ubuntu 24.04 by adding `libcurl4-openssl-dev` and removing missing `libvorbisfile-dev`. - Restored `libsdl2-dev` in `threading-safety.yml` to maintain original configuration while adding missing mandatory dependencies. - Verified that all unit tests pass in a standalone environment. Co-authored-by: segin <[email protected]>
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
… CI infrastructure overhaul
- Implemented robust unit tests for `UTF8Util::decodeSafe` covering all identified edge cases.
- Fixed non-standard byte array initialization in tests for improved portability.
- Added missing standard library headers (<cstdint>, <utility>, <string>, etc.) to core utility files.
- Overhauled CI workflows to support Ubuntu 24.04:
- Added `libcurl4-openssl-dev`, `libdbus-1-dev`, and `libopusfile-dev`.
- Corrected SDL 1.2 dependency names and ensured consistency across jobs.
- Removed redundant `libvorbisfile-dev` which is part of `libvorbis-dev` on Noble.
- Upgraded all GitHub Actions to their latest versions to resolve deprecation warnings.
- Fixed Claude Code Action permissions and token configuration.
Co-authored-by: segin <[email protected]>
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
🎯 What: Implemented unit tests for
UTF8Util::decodeSafeand fixed standalone compilation issues forUTF8UtilandRect.📊 Coverage:
UTF8Util::decodeSafe: Tested null/empty inputs, valid ASCII/UTF-8, null terminator handling, and invalid sequence repair (including overlong encodings).UTF8Util.cpp,rect.h, andrect.cpp, allowing these core components to be compiled and tested without requiring a full environment with SDL and TagLib.✨ Result: Improved test coverage for core utility functions and enhanced build robustness for local development and testing.
PR created automatically by Jules for task 2525939456556117283 started by @segin