-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Testing infrastructure for cluster commands #41551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mergify
merged 104 commits into
project-chip:master
from
LyudmilaKostanyan:CommandTesting
Nov 7, 2025
Merged
Changes from all commits
Commits
Show all changes
104 commits
Select commit
Hold shift + click to select a range
f30f3d5
Add `CommandTesting` infrastructure
LyudmilaKostanyan c1d6aee
Restyled by whitespace
restyled-commits 9770887
Add status storage to `MockCommandHandler` for testing
LyudmilaKostanyan c855f9f
Restyled by clang-format
restyled-commits d8f0b34
Refactor `TestPushAVStreamTransportCluster`
LyudmilaKostanyan 2731890
Replace single response with response array in `MockCommandHandler`
LyudmilaKostanyan 6976e34
Update src/app/clusters/testing/CommandTesting.h
LyudmilaKostanyan 17aabad
Update src/app/clusters/testing/CommandTesting.h
LyudmilaKostanyan 5ccf691
Restyled by clang-format
restyled-commits cd5b281
Merge branch 'master' into CommandTesting
LyudmilaKostanyan bb1dee4
Merge branch 'master' into CommandTesting
LyudmilaKostanyan f35396f
Restyled by gn
restyled-commits eda168d
Merge branch 'master' into CommandTesting
LyudmilaKostanyan 131b81e
Remove unused header file TestReadWriteAttribute.h from testing sourc…
LyudmilaKostanyan 2276381
Update src/app/clusters/testing/CommandTesting.cpp
LyudmilaKostanyan 12855fe
Remove unnecessary comments.
LyudmilaKostanyan 6fecf03
Refactor `InvokeOperation::Invoke` to use generated request structs
LyudmilaKostanyan 7298a14
Restyled by clang-format
restyled-commits 51f37c2
Refactor `InvokeOperation` class in `CommandTesting.h`
LyudmilaKostanyan 80d56de
Update src/app/clusters/diagnostic-logs-server/tests/TestDiagnosticLo…
LyudmilaKostanyan 234a4e0
Update src/app/clusters/diagnostic-logs-server/tests/TestDiagnosticLo…
LyudmilaKostanyan 353466d
Update src/app/clusters/diagnostic-logs-server/tests/TestDiagnosticLo…
LyudmilaKostanyan 460bc34
Update src/app/clusters/diagnostic-logs-server/tests/TestDiagnosticLo…
LyudmilaKostanyan 8511eae
Update src/app/clusters/diagnostic-logs-server/tests/TestDiagnosticLo…
LyudmilaKostanyan 3f6e8f9
Update src/app/clusters/diagnostic-logs-server/tests/TestDiagnosticLo…
LyudmilaKostanyan 045dfc1
Merge branch 'master' into CommandTesting
LyudmilaKostanyan cb0261d
Refactor `CommandTesting.h`
LyudmilaKostanyan 0e39b9b
Update src/app/clusters/testing/CommandTesting.h
LyudmilaKostanyan 1e9f140
Merge branch 'master' into CommandTesting
LyudmilaKostanyan a15010c
Refactor `ClusterTester` class to enhance command invocation capabili…
LyudmilaKostanyan 60edc5a
Restyled by clang-format
restyled-commits b8fc040
Return helper function `InvokeCommand` to `ClusterTester`
LyudmilaKostanyan 95e5b52
Restyled by clang-format
restyled-commits 0eb0c33
Update src/app/clusters/testing/CommandTesting.h
LyudmilaKostanyan 0287040
Refactoring of the `InvokeCommand` helper method:
LyudmilaKostanyan fef8b77
Restyled by clang-format
restyled-commits ea3e147
Refactor `TestGroupcastCluster` to use `MockCommandHandler` from `Com…
LyudmilaKostanyan 7ab0d90
Merge branch 'master' into CommandTesting
LyudmilaKostanyan ba9cc8f
Merge branch 'master' into CommandTesting
LyudmilaKostanyan c2ce933
Updated comments in `CommandTesting.h` and removed `InvokeCommand` me…
LyudmilaKostanyan c9325cb
Restyled by clang-format
restyled-commits 9faa42a
Refactor `ClusterTester` class to enhance command invocation.
LyudmilaKostanyan f6e375e
Update `ClusterTester` to use member buffer for TLV operations.
LyudmilaKostanyan a603bc1
Restyled by clang-format
restyled-commits 6c81616
Updated comments in `ClusterTester.h`
LyudmilaKostanyan b2cb0a8
Enhance `ClusterTester` constructor to initialize `mHandler` and clea…
LyudmilaKostanyan f633116
Remove unused `mSubjectDescriptor` member from `TestPushAVStreamTrans…
LyudmilaKostanyan e2a435e
Restyled by clang-format
restyled-commits 562b141
Enhance `Invoke` methods in `ClusterTester` to include `[[nodiscard]]…
LyudmilaKostanyan cc5eba3
Restyled by clang-format
restyled-commits 8f58c46
Make `mHandler` a value in `ClusterTester` remove `unique_ptr` overloads
LyudmilaKostanyan a9864ac
Update `PacketBufferHandle` initialization to use maximum size constant
LyudmilaKostanyan 7ca5ef8
Refactor `Invoke` method in `ClusterTester` to use `ReturnErrorOnFail…
LyudmilaKostanyan b767a42
Restyled by clang-format
restyled-commits 3d503df
Simplify `ClusterTester` `InvokeOperation` API and clarify intent
LyudmilaKostanyan 83a2327
Restyled by clang-format
restyled-commits d73ccfc
Merge branch 'master' into CommandTesting
LyudmilaKostanyan 56a5c72
Update `MockCommandHandler::AddResponseData` to use a fixed buffer si…
LyudmilaKostanyan 4a1d16d
Update `MockCommandHandler::AddResponseData` to use `kMaxAppMessageLe…
LyudmilaKostanyan 098d4d9
Refactor `ClusterTester` to simplify command invocation methods and u…
LyudmilaKostanyan 41d4647
Restyled by clang-format
restyled-commits 31a5ed7
Remove unused `ClusterTester` methods `GetHandler()` and `DecodeRespo…
LyudmilaKostanyan b05e64f
Refactor to remove namespace for types
LyudmilaKostanyan 0af66dd
Restyled by clang-format
restyled-commits 1d5a243
Merge branch 'master' into CommandTesting
LyudmilaKostanyan 48e0227
Remove unused `GetRequest()` method from `ClusterTester`
LyudmilaKostanyan c177b55
Restyled by clang-format
restyled-commits aae7d67
Remove `Invoke` useless methods and Refactor `JoinGroup` command test…
LyudmilaKostanyan 846e90f
Restyled by clang-format
restyled-commits 79814c9
Change `ReturnErrorOnFailure` to `VerifyOrReturnValue`
LyudmilaKostanyan a48de07
Refactor `ClusterTester` to simplify command invocation and update `T…
LyudmilaKostanyan a68b53a
Restyled by clang-format
restyled-commits 7602cee
Merge branch 'master' into CommandTesting
LyudmilaKostanyan 2bda6d5
Update src/app/clusters/testing/CommandTesting.cpp
LyudmilaKostanyan aa9e1b1
Remove unused member variables from `ClusterTester.h`
LyudmilaKostanyan ef56cab
Replace `push_back` to `emplace_back`
LyudmilaKostanyan 106c462
Rename `CommandTesting` to `MockCommandHandler`
LyudmilaKostanyan f2659b1
Update `BUILD.gn`
LyudmilaKostanyan c0ac816
Restyled by clang-format
restyled-commits 3322d4c
Update src/app/clusters/testing/ClusterTester.h
LyudmilaKostanyan e61dd2d
Update src/app/clusters/diagnostic-logs-server/tests/TestDiagnosticLo…
LyudmilaKostanyan d66109a
Update src/app/clusters/groupcast/tests/TestGroupcastCluster.cpp
LyudmilaKostanyan 4fe4623
Update src/app/clusters/push-av-stream-transport-server/tests/TestPus…
LyudmilaKostanyan 2a337bd
Update src/app/clusters/testing/MockCommandHandler.cpp
LyudmilaKostanyan 87d9d71
Refactor `MockCommandHandler`
LyudmilaKostanyan a6c6a2e
Fix android compile error (#41761)
yufengwangca 74e2465
Refactor `MockCommandHandler` - updating fabric index initialization …
LyudmilaKostanyan 7baa51c
Refactoring of the code
restyled-commits a98afd9
Merge branch 'master' into CommandTesting
LyudmilaKostanyan 53bb9b1
Enhance `ClusterTester` and `JoinGroupCommand` test
LyudmilaKostanyan e206c61
Restyled by clang-format
restyled-commits 0d2beff
Merge branch 'master' into CommandTesting
LyudmilaKostanyan 9bc8b56
Restyled by clang-format
restyled-commits aee693f
Enhance documentation in `ClusterTester.h` to clarify usage of Invoke…
LyudmilaKostanyan 048e741
Update src/app/clusters/testing/ClusterTester.h
LyudmilaKostanyan 46e400c
Restyled by clang-format
restyled-commits fe6cd84
Handle decode failure in `ClusterTester` Invoke by setting status and…
LyudmilaKostanyan 92823ff
Merge branch 'master' into CommandTesting
LyudmilaKostanyan 2ad2ac9
Refactor `ClusterTester` to improve command invocation and response h…
LyudmilaKostanyan 397dc02
Restyled by clang-format
restyled-commits ecc49a4
Fix `IsSuccess()` to handle `NullObjectType` response correctly
LyudmilaKostanyan 36d48e0
Merge branch 'master' into CommandTesting
LyudmilaKostanyan 73b82a1
Restyled by whitespace
restyled-commits a5d1988
Restyled by clang-format
restyled-commits File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.