Skip to content

KF-25 add tests for EncodingDetector#43

Merged
SergiusTheBest merged 6 commits into
mainfrom
KF-25-test-EncodingDetector
Aug 14, 2025
Merged

KF-25 add tests for EncodingDetector#43
SergiusTheBest merged 6 commits into
mainfrom
KF-25-test-EncodingDetector

Conversation

@Kellesi
Copy link
Copy Markdown
Collaborator

@Kellesi Kellesi commented Aug 11, 2025

This comment was marked as outdated.

@Kellesi Kellesi force-pushed the KF-25-test-EncodingDetector branch from b907550 to 66f7482 Compare August 12, 2025 12:03
@Kellesi Kellesi force-pushed the KF-25-test-EncodingDetector branch from 66f7482 to 33ae9ea Compare August 12, 2025 12:04
Comment thread include/kf/EncodingDetector.h
@Kellesi Kellesi requested a review from Copilot August 13, 2025 16:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds comprehensive test coverage for the EncodingDetector class, which identifies text encodings from byte buffers. The tests cover both BOM-based detection and heuristic-based detection scenarios.

  • Adds a new test file with 183 lines covering various encoding detection scenarios
  • Updates the CMake build configuration to include the new test file
  • Minor documentation and initialization improvements to the EncodingDetector header

Reviewed Changes

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

File Description
test/EncodingDetectorTest.cpp New comprehensive test suite covering BOM detection for UTF-8/16/32 variants and non-BOM scenarios
test/CMakeLists.txt Adds the new test file to the build configuration
include/kf/EncodingDetector.h Adds class documentation and improves member initialization

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread test/EncodingDetectorTest.cpp Outdated
Comment thread test/EncodingDetectorTest.cpp Outdated
Comment thread test/EncodingDetectorTest.cpp Outdated
@SergiusTheBest SergiusTheBest merged commit b684055 into main Aug 14, 2025
2 checks passed
@SergiusTheBest SergiusTheBest deleted the KF-25-test-EncodingDetector branch August 14, 2025 12:22
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.

4 participants