Skip to content

KF-33 add tests for ThreadPool - #74

Merged
SergiusTheBest merged 2 commits into
mainfrom
KF-33-test-ThreadPool
Oct 16, 2026
Merged

SergiusTheBest merged 2 commits into
mainfrom
KF-33-test-ThreadPool

Conversation

@Kellesi

@Kellesi Kellesi commented Aug 20, 2025

Copy link
Copy Markdown
Collaborator

@Kellesi
Kellesi requested a review from Copilot August 20, 2025 17:25

This comment was marked as outdated.

@Kellesi
Kellesi force-pushed the KF-33-test-ThreadPool branch 2 times, most recently from a45fd64 to 2a2e108 Compare August 20, 2025 17:45
@Kellesi
Kellesi requested a review from Copilot August 20, 2025 17:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 kf::ThreadPool class to address ticket KF-33. The tests verify core ThreadPool functionality including thread creation, execution, cleanup, and move semantics.

  • Adds test scenarios for normal operation, boundary conditions, and move semantics
  • Includes precompiled header updates with C++ runtime helper functions for kernel-mode testing
  • Fixes uninitialized array issue in ThreadPool header

Reviewed Changes

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

File Description
test/ThreadPoolTest.cpp New comprehensive test suite covering ThreadPool functionality with various scenarios
test/pch.h Adds C++ runtime helper functions needed for kernel-mode testing environment
test/CMakeLists.txt Includes the new ThreadPoolTest.cpp in the build configuration
include/kf/ThreadPool.h Initializes m_threads array to prevent undefined behavior

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

Comment thread test/ThreadPoolTest.cpp Outdated
Comment thread test/ThreadPoolTest.cpp Outdated
@SergiusTheBest
SergiusTheBest merged commit 79cd205 into main Oct 16, 2026
4 checks passed
@SergiusTheBest
SergiusTheBest deleted the KF-33-test-ThreadPool branch October 16, 2026 15:26
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