Skip to content

[Tests] Add std::vector test suite - #332

Open
nxtum wants to merge 1 commit into
masterfrom
add-vector-test-suite
Open

nxtum wants to merge 1 commit into
masterfrom
add-vector-test-suite

Conversation

@nxtum

@nxtum nxtum commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI balanced review requested due to automatic review settings October 2, 2026 07:59

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.

Copilot review overview

🟡 Changes recommended

Generated deserialization does not preserve unset optional vector elements, causing the new tests to fail or assert.

Review effort: Balanced
Findings: 1 High severity

Open (1)
What changed in this PR

Adds COM-RPC functional coverage for std::vector marshalling.

Changes:

  • Adds vector interfaces, implementations, and tests.
  • Covers primitive, structured, nested, and optional vectors.
  • Registers and documents the new test suite.
File Description
tests/​FunctionalTests/​README.md Documents the suite.
tests/​FunctionalTests/​CMakeLists.txt Adds the test option.
tests/​FunctionalTests/​comrpc/​CMakeLists.txt Registers vector tests.
tests/​FunctionalTests/​comrpc/​tests/​TestVectors.cpp Adds COM-RPC test cases.
tests/​FunctionalTests/​common/​CMakeLists.txt Registers the interface and implementation.
tests/​FunctionalTests/​common/​interfaces/​README.md Documents vector coverage.
tests/​FunctionalTests/​common/​interfaces/​ITestVectors.h Defines the test interface.
tests/​FunctionalTests/​common/​interfaces/​Ids.h Assigns the interface ID.
tests/​FunctionalTests/​common/​implementations/​TestVectorsImpl.cpp Implements test behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +63 to +65
virtual Core::hresult SummarizeOptionalElements(const std::vector<Core::OptionalType<uint32_t>>& values /* @in @restrict:0..255 */, uint32_t& valueSum /* @out */, uint32_t& setCount /* @out */) const = 0;
virtual Core::hresult GetOptionalElements(std::vector<Core::OptionalType<uint32_t>>& values /* @out @restrict:0..255 */) const = 0;
virtual Core::hresult TransformOptionalElements(std::vector<Core::OptionalType<uint32_t>>& values /* @inout @restrict:0..255 */) const = 0;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will be fixed

This branch has not been deployed

No deployments
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.

2 participants