Skip to content

Update PersistableBundleSubject#isEqual to handle arrays - #2446

Merged
copybara-service[bot] merged 1 commit into
mainfrom
piper_826168934
Nov 3, 2025
Merged

copybara-service[bot] merged 1 commit into
mainfrom
piper_826168934

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Oct 30, 2025 •

Copy link
Copy Markdown

Update PersistableBundleSubject#isEqual to handle arrays

I originally thought MapSubject was handling Array types, but the PersistableBundles in the test cases were using the same array reference meaning the tests were incorrect.

Updates to just convert the arrays to a list and updates the tests to perform a clone in getTestBundle. We could also convert them to a function instead but a shallow copy is sufficient here.

@copybara-service
copybara-service Bot force-pushed the piper_826168934 branch 2 times, most recently from 84451b0 to 3e833c1 Compare November 3, 2025 18:25
I originally thought MapSubject was handling `Array` types, but the PersistableBundles in the test cases were using the same array reference meaning the tests were incorrect.

Updates to just convert the arrays to a list and updates the tests to perform a clone in `getTestBundle`. We could also convert them to a function instead but a shallow copy is sufficient here.

PiperOrigin-RevId: 827559640
@copybara-service
copybara-service Bot merged commit 54e9296 into main Nov 3, 2025
@copybara-service
copybara-service Bot deleted the piper_826168934 branch November 3, 2025 18:37
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.

1 participant