Skip to content

[go_router] improve coverage - #977

Merged
fluttergithubbot merged 32 commits into
flutter:mainfrom
Ascenio:main
Mar 21, 2022
Merged

[go_router] improve coverage#977
fluttergithubbot merged 32 commits into
flutter:mainfrom
Ascenio:main

Conversation

@Ascenio

@AscenioAscenio commented Feb 28, 2022

Copy link
Copy Markdown
Contributor
BeforeAfter

This PR adds new tests, reaching code paths not previously covered as pointed by a coverage report.
Closes#99286

No CHANGELOG change: because it doesn't affect the package's users.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Comment threadpackages/go_router/test/src/custom_transition_page_test.dart Outdated
Comment threadpackages/go_router/test/go_router_test.dart Outdated
Comment threadpackages/go_router/test/go_router_test.dart Outdated
Comment threadpackages/go_router/test/src/custom_transition_page_test.dart Outdated
Comment threadpackages/go_router/test/src/go_router_cupertino_test.dart Outdated
Comment threadpackages/go_router/test/src/go_router_delegate_test.dart Outdated
Comment threadpackages/go_router/test/src/go_router_material_test.dart Outdated
Comment threadpackages/go_router/test/src/go_router_test.dart Outdated
@chunhtai

Copy link
Copy Markdown
Contributor

Also I have a massive lint update to the package #1017

I would prefer to land it before this pr to avoid adding more tech debt on top of go_router

@Ascenio
Ascenio requested a review from chunhtaiMarch 7, 2022 02:29
@Ascenio
Ascenio requested a review from maheshj01March 8, 2022 12:23

@chunhtaichunhtai left a comment

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.

Code looks good. Can you remove the src sub folder? Let's follow the folder structure of other packages. The folder test/ maps to lib/src directly, so you don't need to create a src fold in test folder.

Comment threadpackages/go_router/CHANGELOG.md

@chunhtaichunhtai left a comment

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.

Some tests seemed to be gone?

@chunhtaichunhtai left a comment

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.

LGTM

@Ascenio

Ascenio commented Mar 10, 2022

Copy link
Copy Markdown
ContributorAuthor

Some tests seemed to be gone?

Technical Difficulties 🤣

@chunhtai

Copy link
Copy Markdown
Contributor

@Ascenio it looks like there is a conflict?

@chunhtai

Copy link
Copy Markdown
Contributor

the build fails

�[36m[0:00] Running for go_router...�[0m
3.0.4 -> 3.0.5
�[31m When bumping the version for release, the NEXT section should be incorporated into the new version's release notes.�[0m

Comment threadpackages/go_router/test/go_router_test.dart Outdated
Comment threadpackages/go_router/test/go_route_test.dart
Comment threadpackages/go_router/test/go_router_delegate_test.dart
Comment threadpackages/go_router/test/go_router_delegate_test.dart Outdated
Comment threadpackages/go_router/test/go_router_error_page_test.dart Outdated
Comment threadpackages/go_router/test/inherited_go_router_test.dart Outdated
@johnpryan

Copy link
Copy Markdown
Contributor

I think most of my comments can be addressed as a follow-up. I can file issues if they're out of scope for this PR.

@fluttergithubbot
fluttergithubbot merged commit a9d6bf1 into flutter:mainMar 21, 2022
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
Sign up for freeto 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.

[go_router] Increase coverage

5 participants

@Ascenio@chunhtai@johnpryan@maheshj01@fluttergithubbot