Skip to content

KF-28 add tests for VariableSizeStruct#51

Merged
SergiusTheBest merged 2 commits intomainfrom
KF-28-test-VariableSizeStruct
Aug 12, 2025
Merged

KF-28 add tests for VariableSizeStruct#51
SergiusTheBest merged 2 commits intomainfrom
KF-28-test-VariableSizeStruct

Conversation

@Kellesi
Copy link
Collaborator

@Kellesi Kellesi commented Aug 11, 2025

@Kellesi Kellesi requested a review from Copilot August 11, 2025 21:26
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 VariableSizeStruct class, covering construction, destruction, memory allocation, and object lifecycle management.

  • Adds test cases for default construction, explicit construction with parameters, and memory management operations
  • Tests constructor/destructor counting to verify proper object lifecycle management
  • Covers edge cases like multiple emplace calls and manual free operations

Reviewed Changes

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

File Description
test/VariableSizeStructTest.cpp Comprehensive test suite for VariableSizeStruct with lifecycle tracking
test/CMakeLists.txt Adds new test file to build configuration
include/kf/VariableSizeStruct.h Adds missing include for stl/new header

@SergiusTheBest SergiusTheBest merged commit 2199cdd into main Aug 12, 2025
2 checks passed
@SergiusTheBest SergiusTheBest deleted the KF-28-test-VariableSizeStruct branch August 12, 2025 16:28
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