p-hatan/ mirror

pub repository

mirror.p-hatan.com

matcher

0.11.4+5

Support for specifying test expectations

Download archive

Readme

Support for specifying test expectations, such as for unit tests.

The matcher library provides a third-generation assertion mechanism, drawing inspiration from Hamcrest.

For more information, see Unit Testing with Dart.

Changelog

0.11.4+5

  • Fix all strong-mode warnings.

0.11.4+4

  • Deprecate the name parameter to isInstanceOf. All language implementations now support converting the type parameter to a string directly.

0.11.4+3

  • Fix the examples for equalsIgnoringWhitespace.

0.11.4+2

  • Improve the formatting of strings that contain unprintable ASCII characters.

0.11.4+1

  • Correctly match and print Strings containing characters that must be represented as escape sequences.

0.11.4

  • Remove the type checks in the isEmpty and isNotEmpty matchers and simply access the isEmpty respectively isNotEmpty fields. This allows them to work with custom collections. See Issue 21792 and Issue 21562

0.11.3+1

  • Fix the prints matcher test on dart2js.

0.11.3

  • Add a prints matcher that matches output a callback emits via print.

0.11.2

  • Add an isNotEmpty matcher.

0.11.1+1

  • Refactored libraries and tests.

  • Fixed spelling mistake.

0.11.1

  • Added isNaN and isNotNaN matchers.

0.11.0

  • Removed deprecated matchers.

0.10.1+1

  • Get the tests passing when run on dart2js in minified mode.

0.10.1

  • Compare sets order-independently when using equals().

0.10.0+3

  • Removed @deprecated annotation on matchers due to Issue 19173

0.10.0+2

  • Added types to a number of constants.

0.10.0+1

  • Matchers related to bad language use have been removed. These represent code structure that should rarely or never be validated in tests.

    • isAbstractClassInstantiationError
    • throwsAbstractClassInstantiationError
    • isFallThroughError
    • throwsFallThroughError
  • Added types to a number of method arguments.

  • The structure of the library and test code has been updated.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add matcher
pubspec.yaml
name: matcher
version: 0.11.4+5
author: Dart Team <misc@dartlang.org>
description: Support for specifying test expectations
homepage: https://github.com/dart-lang/matcher
environment:
  sdk: '>=1.0.0 <2.0.0'
dev_dependencies:
  unittest: '>=0.10.0 <0.12.0'

Version history

VersionPublishedArchiveSHA-256
0.10.02014-03-22T00:54:13.013700ZDownloadf871040ef3dba89996b15cad850f537d80c2e885a9f49650627472e9341af2cb
0.10.0+12014-06-02T17:57:36.612700ZDownload4fe45eacf62b1477238313265be4fcd4edab212e4b71a767d37c4fe75c178733
0.10.0+22014-06-02T20:28:02.850360ZDownloadfcfcc752c86c02a2799cf55adcca24c626ee4092df7b3108b4718fc7f6c82688
0.10.0+32014-06-05T19:37:01.812620ZDownload88cd3c7e81546be2d7772101c8d6a2c66ce09cc8115c2db593ee5e78f0837f4f
0.10.12014-06-12T20:15:47.518480ZDownloadd1b2fbbf91de462a213b84bfa80dee634258ba9ce645a914ef46877df1a3536e
0.10.1+12014-06-12T21:18:59.173890ZDownload1bc2bd985eb2ff2289795d4585e60105223aa010562b12d97aacfb1211174410
0.11.02014-07-22T22:55:51.596260ZDownloadc51d68147c3626ff48d5aef503c67d23891b15356493c9e0b159b8665e6b8315
0.11.12014-07-31T01:15:51.078600ZDownload8b02756d9c9dbf0431ec3e5cb6a7aa7d9b36b2c8817886507789c3cc3544d54f
0.11.22014-12-04T21:28:35.955370ZDownloaddfd1de433550332f966a12e94bf03a749d9e0575b5116dcb0ed507286a1eec43
0.11.32014-12-10T22:52:29.315610ZDownload6f4bfc394454cdf67ae0322097b4b8a12ce4664a5becc681f5e63ddd9c075945
0.11.42015-01-13T00:03:48.851090ZDownload040d7f1e6de13ed4226bef57d75cf6ef34dcdd5b36bfa29e9d10ee807050f399
0.11.4+12015-02-10T22:33:00.146210ZDownload0958fa803b8188baa17f219cd3d990fc9e5ab4660d4ed3bff961dedd087c8538
0.11.4+22015-03-05T01:37:47.318930ZDownload703b5cff2571912fd0a5a51439b157e221653813d82a4648a149b40c6430ba8a
0.11.4+32015-03-09T21:42:01.667120ZDownload0cf7fa23af8423cda02bca91d915a225710929c55b74548dd95a8e34fc2098f9
0.11.4+42015-03-24T21:56:05.354460ZDownload8a361603a38e6dda4d5d547f20d0a903b943b49f00fc73283a4d728753931084
0.11.4+52016-03-24T19:17:01.926ZDownloadd821fddcfa2936553741121eabb10fc66ec6a8a28e9a12012679f9111274acd8
0.11.4+62016-03-24T20:39:43.387ZDownload39e315c924b69aeedd05712b346c04d28e4cd0857e420659fd83119acbc015d0
0.12.0-alpha.02015-02-20T00:43:04.111ZDownload8e8521d89633bdd61a18ebb085a63f6649c17ead68cef4d8a9a1d4d0f281d89b
0.12.02015-04-30T00:54:52.208ZDownload10c5acc8332b71f62028612b3b060833c9b8c23e7fcfa1384020eae48d55f704
0.12.0+12015-05-21T17:31:28.933ZDownload4cb59fd0605a52bc7ced01aba0fc78aa97560ff3a86da23d5c53345e55a0f96f
0.12.0+22016-03-24T20:41:13.416ZDownload66fe71ebcbd7064b6a492973775f1ba91bbf0b8bf1e8d86d545062d8ff35c2d9
0.12.12017-05-05T19:06:14.292475ZDownload0af3e6198aa6824814f04fbc7f30d55d6e477f55e5a4869e4c2bcf66544a6d08
0.12.1+12017-05-27T00:34:25.852739ZDownload6f9059b39f3191a4fe9650e91e548a4381a8426709bd4b65986a064085d9ed58
0.12.1+22017-08-30T23:01:50.704654ZDownload3639fa52b0b70e9b55073cb3b5009fa9a53341707fa39c4b11031b7e9adb7bce
0.12.1+32017-09-05T21:41:44.661933ZDownloadbee81a33aec304b570eff21f49137d95ab2f297bae64a6f7ac3fbb2d0bd946d8
0.12.1+42017-09-20T20:09:04.431746ZDownloadc6a33eecdb65244d5304b2d26e183c164d81eddf1631c64758bc0aee386d0e11
0.12.22018-04-12T22:18:05.119656ZDownload59e807ce4305ef1441a06d2ab6d2755621be1fd5651aa38772aa715a4f43ac8d
0.12.2+12018-05-03T22:09:29.113032ZDownload5ea7e7209ade699d9956be21339351d5cb89d4bbdce51ff41a969d332653b792
0.12.32018-06-14T22:43:01.907675ZDownload93124cd404f8de7c7e4d5eb4e56a178b0a82b521b3ef9325496ee29b4cebe638
0.12.3+12018-07-16T19:27:08.192121ZDownloadef2adb68b8e420bd089f48a551798e4f32e7acfac82a445da972410090503526
0.12.42018-07-17T20:26:05.530959ZDownloadc78a72c2f7f9c31eb35bf4a967b80d30c87b406df65a8511da5e4a36064a18b5
0.12.52019-03-22T20:27:13.888038ZDownload0fea0971b41ea65a79e01b8193167e4dae5b58fb8374dcd070946a5ea40d5200
0.12.62019-10-21T20:02:36.669978ZDownloadfc649fa7647ac826aec7ac2be1387c155f26fe55e03c16df020a4fe0e7419f21
0.12.82020-06-16T20:22:06.869530ZDownloaddc850a141ec6bfdb17d5c7f873ff7b473ef0a023ea39e4bf1556410698189675
0.12.92020-07-13T20:57:44.850742ZDownload34a9b8fdeda855a39a259e16604be0298fc9ff23ae8cb352016960b7e3f0e767
0.12.10-nullsafety2020-07-29T15:53:07.046288ZDownloadcb7611da57f9217637030d6103bbf49bd4eb559f5f1d7060b603ffbcfe702a62
0.12.10-nullsafety.12020-09-22T15:52:08.352456ZDownloadab0169fb621f8139e68b2801005a9601076ca5055f789541fdc24ceb97e2b987
0.12.10-nullsafety.22020-10-23T19:58:35.531279ZDownload8fa1bbe9dcf2f3c7eb0ae3dbc6a41e7b2aec27e216783b4b74d843233fcd7af2
0.12.10-nullsafety.32020-11-03T20:44:10.748917ZDownloade7e41604a1648d87765e9928e7251dccca17198f786745c9e31cad5c090641b5
0.12.102021-02-02T23:43:47.968651ZDownload38c7be344ac5057e10161a5ecb00c9d9d67ed2f150001278601dd27d9fe64206
0.12.112021-08-12T17:54:24.176756ZDownload2e2c34e631f93410daa3ee3410250eadc77ac6befc02a040eda8a123f34e6f5a
0.12.122022-06-15T20:54:43.458056ZDownload80c2989398773fa06e2457e9ff08580f24e9858b28462a722241cb53e5613478
0.12.132022-10-25T16:23:31.993574ZDownload16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72
0.12.142022-12-13T19:00:51.899426ZDownloadc94db23593b89766cda57aab9ac311e3616cf87c6fa4e9749df032f66f30dcb8
0.12.152023-03-22T01:12:08.256400ZDownload6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb
0.12.162023-05-02T04:24:54.094638ZDownload1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e
0.12.16+12023-12-13T19:38:54.836554ZDownloadd2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
0.12.172024-10-18T08:47:56.147427ZDownloaddc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
0.12.182025-11-20T23:35:48.383270ZDownload12956d0ad8390bbcc63ca2e1469c0619946ccb52809807067a7020d57e647aa6
0.12.192026-02-27T01:52:58.341450ZDownloaddc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861
0.12.202026-04-27T20:39:05.888392ZDownload31bd099b47c10cd1aeb55146a2d46ce0277630ecef3f7dae54ad7873f36696cd

Dependencies

No direct dependencies declared.