Skip to content

Core: Introduce builder for TrackedFile#16769

Open
gaborkaszab wants to merge 1 commit into
apache:mainfrom
gaborkaszab:main_trackedfile_builder
Open

Core: Introduce builder for TrackedFile#16769
gaborkaszab wants to merge 1 commit into
apache:mainfrom
gaborkaszab:main_trackedfile_builder

Conversation

@gaborkaszab

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot added the core label Jun 11, 2026
file.set(10, dv);
file.set(12, ByteBuffer.wrap(new byte[] {1, 2, 3}));
file.set(13, ImmutableList.of(50L));
(TrackedFileStruct)

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.

Are we sure that we want to test the struct through the builder?

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 function is not relevant for testing the "struct-ness" of the class, this creates an input object with certain fields for the various tests. Note, some members are already populated through the constructor and not setters. Note, there is a dedicated test testFieldAccess that exercises the setter functions for all the fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants