Skip to content

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Oct 30, 2025

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