Carve FixedSizeQueue out of MpscBoundedQueue - #367
Conversation
License Check Results🚀 The license check job ran with the Bazel command: bazel run --lockfile_mode=error //:license-checkStatus: Click to expand output |
|
The created documentation from the pull request is available at: docu-html |
WilliamRoebuck
left a comment
There was a problem hiding this comment.
Looks good overall, only minor comments
|
Should we move this out to a separate file if it is a reusable container? |
fixed in last commit |
| #include <optional> | ||
| #include <vector> | ||
|
|
||
| #include <score/assert.hpp> |
There was a problem hiding this comment.
include required?
| "size() returns 0 " | ||
| "capacity() returns 0 " | ||
| "push returns false " | ||
| "tryPop() turns std::nullopt"); |
There was a problem hiding this comment.
| "tryPop() turns std::nullopt"); | |
| "tryPop() returns std::nullopt"); |
| while(!queue_cap_five.full()) { | ||
| EXPECT_TRUE(queue_cap_five.push(1)); | ||
| ++no_elements; | ||
| RecordProperty("Description", "Verify that push increments the size by one."); |
There was a problem hiding this comment.
Can RecordProperty with Description actually be used multiple times in the same test?
I would have thought this overwrites the previous description
| #include <vector> | ||
|
|
||
| using namespace score::lcm::internal; | ||
|
|
There was a problem hiding this comment.
I think we'll need to add RecordProperty for TestType and DerivationTechnique.
See https://eclipse-score.github.io/process_description//main/process_areas/verification/guidance/verification_templates.html#c-properties-template
Carve FixedSizeQueue out of MpscBoundedQueue for reuse.
MpscBoundedQueues capacity can be set now at runtime, to allow
setting the capacity based on configuration.