Skip to content

KF-25 add tests for TextDetector#42

Merged
SergiusTheBest merged 4 commits intomainfrom
KF-25-test-TextDetector
Aug 13, 2025
Merged

KF-25 add tests for TextDetector#42
SergiusTheBest merged 4 commits intomainfrom
KF-25-test-TextDetector

Conversation

@Kellesi
Copy link
Collaborator

@Kellesi Kellesi commented Aug 11, 2025

Copy link
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 unit tests for the TextDetector class to verify its ability to detect text across various Unicode encodings. The tests cover UTF-8, UTF-16 (both LE and BE), and UTF-32 (both LE and BE) with BOM markers, including both valid text scenarios and invalid character scenarios.

  • Adds test coverage for TextDetector::isText() method across all supported Unicode encodings
  • Tests both positive cases (valid text with BOM) and negative cases (text with invalid control characters)
  • Integrates the new test file into the CMake build system

Reviewed Changes

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

File Description
test/TextDetectorTest.cpp New comprehensive test suite covering all Unicode encoding scenarios for TextDetector
test/CMakeLists.txt Adds the new test file to the build configuration
include/kf/TextDetector.h Adds documentation comment explaining the TextDetector class functionality

@SergiusTheBest SergiusTheBest merged commit c50da26 into main Aug 13, 2025
2 checks passed
@SergiusTheBest SergiusTheBest deleted the KF-25-test-TextDetector branch August 13, 2025 15:25
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.

3 participants