easy_mock_package_info 0.1.0 copy "easy_mock_package_info: ^0.1.0" to clipboard
easy_mock_package_info: ^0.1.0 copied to clipboard

Readable test mock for package_info_plus. Sets PackageInfo through the package's own setMockInitialValues seam (it caches the result, so a raw channel mock would be unreliable).

0.1.0 #

  • Initial release.
  • mockPackageInfo — sets PackageInfo via package_info_plus' setMockInitialValues seam (it caches fromPlatform, so a channel mock would be unreliable — hence this depends on the real package).
  • set({appName, packageName, version, buildNumber}); install() resets to defaults.
0
likes
140
points
120
downloads

Documentation

API reference

Publisher

verified publisherahmedomar.com.ly

Weekly Downloads

Readable test mock for package_info_plus. Sets PackageInfo through the package's own setMockInitialValues seam (it caches the result, so a raw channel mock would be unreliable).

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, flutter_test, package_info_plus

More

Packages that depend on easy_mock_package_info