Skip to content

KF-29 add tests for Observer#46

Merged
SergiusTheBest merged 7 commits into
mainfrom
KF-29-test-Observer
Aug 15, 2025
Merged

KF-29 add tests for Observer#46
SergiusTheBest merged 7 commits into
mainfrom
KF-29-test-Observer

Conversation

@Kellesi
Copy link
Copy Markdown
Collaborator

@Kellesi Kellesi commented Aug 11, 2025

@Kellesi Kellesi requested a review from Copilot August 11, 2025 14:47

This comment was marked as outdated.

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 Observer pattern implementation by introducing a new test file with multiple test scenarios.

  • Adds ObserverTest.cpp with test scenarios covering attach, detach, notify, and multiple notification functionality
  • Updates CMakeLists.txt to include the new test file in the build
  • Adds necessary include for cassert in Observer.h header

Reviewed Changes

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

File Description
test/ObserverTest.cpp New comprehensive test file for Observer pattern with scenarios testing attachment, notification, detachment, and multiple notifications
test/CMakeLists.txt Adds ObserverTest.cpp to the test build configuration
include/kf/patterns/Observer.h Adds cassert include dependency

Comment thread test/ObserverTest.cpp Outdated
Comment thread test/ObserverTest.cpp Outdated
Comment thread test/ObserverTest.cpp Outdated
Comment thread test/ObserverTest.cpp
Comment thread test/ObserverTest.cpp Outdated
Comment thread test/ObserverTest.cpp Outdated
Comment thread test/ObserverTest.cpp
Comment thread test/ObserverTest.cpp Outdated
Comment thread test/ObserverTest.cpp Outdated
Comment thread test/ObserverTest.cpp Outdated
Comment thread test/ObserverTest.cpp Outdated
@SergiusTheBest SergiusTheBest merged commit 36954ad into main Aug 15, 2025
2 checks passed
@SergiusTheBest SergiusTheBest deleted the KF-29-test-Observer branch August 15, 2025 09:09
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