Skip to content

Conversation

hgraceb
Copy link
Member

@hgraceb hgraceb commented Oct 11, 2025

A part split from #10188.

Pre-Review Checklist

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly fixes a typo in an error message for the limit parameter and improves the associated tests by making them more specific. The changes are solid. I've added a few minor suggestions to fix typos in test descriptions and to address some code duplication in the tests for better maintainability.

Comment on lines +1102 to +1110
final Matcher throwsLimitArgumentError = throwsA(
isA<ArgumentError>()
.having((ArgumentError error) => error.name, 'name', 'limit')
.having(
(ArgumentError error) => error.message,
'message',
'cannot be lower than 2',
),
);

Choose a reason for hiding this comment

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

medium

This throwsLimitArgumentError matcher is also defined in the test for getMultiImageWithOptions around line 1841. To improve maintainability and avoid code duplication, consider defining this matcher once at the top level of the file and reusing it in both tests.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant