Skip to content

flatbuffers: add flatbuffers allocator test#211

Open
paulquiring wants to merge 1 commit into
eclipse-score:mainfrom
etas-contrib:paulquiring/add_flatbuffers_allocator_ut
Open

flatbuffers: add flatbuffers allocator test#211
paulquiring wants to merge 1 commit into
eclipse-score:mainfrom
etas-contrib:paulquiring/add_flatbuffers_allocator_ut

Conversation

@paulquiring

@paulquiring paulquiring commented May 22, 2026

Copy link
Copy Markdown
Contributor

Initial unit test for the FlatBuffer wrapper library is added.
This unit test will serve as a template for all subsequent unit tests.

Closes: #127

@github-actions

Copy link
Copy Markdown

The created documentation from the pull request is available at: docu-html

@4og 4og added the comp-flatbuffers Related to score/flatbuffers component label May 22, 2026
@paulquiring paulquiring temporarily deployed to workflow-approval June 9, 2026 13:56 — with GitHub Actions Inactive
@paulquiring paulquiring temporarily deployed to workflow-approval June 9, 2026 13:56 — with GitHub Actions Inactive
Comment thread _coverage_report.dat Outdated
Comment thread .github/workflows/coverage_report.yml Outdated
Comment thread score/flatbuffers/details/gcov_dump_on_abort.hpp Outdated
Comment thread .bazelrc Outdated
@paulquiring paulquiring force-pushed the paulquiring/add_flatbuffers_allocator_ut branch from e5e076d to 9b92189 Compare June 25, 2026 10:23
@paulquiring paulquiring marked this pull request as ready for review June 25, 2026 10:26
@paulquiring paulquiring requested review from 4og and antonkri as code owners June 25, 2026 10:26
@paulquiring paulquiring force-pushed the paulquiring/add_flatbuffers_allocator_ut branch from 9b92189 to 7dc5e84 Compare June 25, 2026 10:49
@paulquiring paulquiring temporarily deployed to workflow-approval June 25, 2026 10:49 — with GitHub Actions Inactive
@paulquiring paulquiring temporarily deployed to workflow-approval June 25, 2026 10:49 — with GitHub Actions Inactive
@paulquiring paulquiring self-assigned this Jun 25, 2026
@paulquiring paulquiring removed their assignment Jun 25, 2026

TEST(AllocatorTest, AllocateReturnsNonNull)
{
RecordProperty("Verifies", "::flatbuffers::Allocator::allocate, ::flatbuffers::Allocator::deallocate");

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.

To use a namespace element in the Verifies RecordProperty is not defined in the process.

 RecordProperty("Verifies", "::flatbuffers::Allocator::allocate, ::flatbuffers::Allocator::deallocate");

we might want to include that since this is common practice inside baselibs.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As far as I remember, the process expects either FullyVerifies or PartiallyVerifies. Currently they are not really used in baselibs

@paulquiring paulquiring force-pushed the paulquiring/add_flatbuffers_allocator_ut branch from 7dc5e84 to 8ca915f Compare June 25, 2026 16:10
@paulquiring paulquiring force-pushed the paulquiring/add_flatbuffers_allocator_ut branch from 8ca915f to 2c5f202 Compare June 26, 2026 07:18
@paulquiring paulquiring temporarily deployed to workflow-approval June 26, 2026 07:18 — with GitHub Actions Inactive
@paulquiring paulquiring temporarily deployed to workflow-approval June 26, 2026 07:18 — with GitHub Actions Inactive
Comment thread .claude/settings.local.json Outdated
@paulquiring paulquiring force-pushed the paulquiring/add_flatbuffers_allocator_ut branch from 47ff5d4 to b4b5b39 Compare June 26, 2026 11:39
@paulquiring paulquiring force-pushed the paulquiring/add_flatbuffers_allocator_ut branch from b4b5b39 to 68b198e Compare June 26, 2026 12:08
@paulquiring paulquiring force-pushed the paulquiring/add_flatbuffers_allocator_ut branch from 68b198e to 56ce4a4 Compare June 26, 2026 12:22
@paulquiring paulquiring temporarily deployed to workflow-approval June 26, 2026 12:22 — with GitHub Actions Inactive
@paulquiring paulquiring temporarily deployed to workflow-approval June 26, 2026 12:22 — with GitHub Actions Inactive
Comment thread score/flatbuffers/BUILD Outdated

cc_test(
name = "flatbuffers_cpp_library_test",
testonly = 1,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can this rather be set to True instead of 1?

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.

Done.


TEST(AllocatorTest, AllocateReturnsNonNull)
{
RecordProperty("Verifies", "::flatbuffers::Allocator::allocate, ::flatbuffers::Allocator::deallocate");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As far as I remember, the process expects either FullyVerifies or PartiallyVerifies. Currently they are not really used in baselibs

@paulquiring paulquiring force-pushed the paulquiring/add_flatbuffers_allocator_ut branch from 56ce4a4 to 651c3b5 Compare June 26, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-flatbuffers Related to score/flatbuffers component

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

Add initial unit test for FlatBuffer wrapper library

2 participants