build_test 0.4.0
·
2336 commits
to master
since this release
Updates to work with build version 0.7.0.
New Features
- The
testBuildermethod now acceptsList<int>values for both
sourceAssetsandoutputs. - The
checkOutputsmethod is now public.
Breaking Changes
- The
testBuildermethod now requires aRecordingAssetWriterinstead of
just anAssetWriterfor thewriterparameter. - If a
Matcheris provided as a value inoutputs, then it will match against
the same value that was written. For example if your builder uses
writeAsStringthen it will match against that string. If you use
writeAsBytesthen it will match against those bytes. It will not
automatically convert to/from bytes and strings. - Deleted the
makeAssetandmakeAssetsmethods. There is no moreAsset
class so these don't really have any value any more. - The signature of
addAssetshas changed to
void addAssets(Map<AssetId, dynamic> assets, InMemoryAssetWriter writer).
Values of the map may be eitherStringorList<int>. InMemoryAssetReader#assetsandInMemoryAssetWriter#assetshave changed to
a type ofMap<AssetId, DatedValue>from a type of
Map<AssetId, DatedString>.DatedValuehas both astringValueand
bytesValuegetter.InMemoryAssetReaderandInMemoryAssetWriterhave been updated to implement
the newAssetReaderandAssetWriterinterfaces (see thebuildpackage
CHANGELOG for more details).InMemoryAssetReader#cacheAssethas been changed to two separate methods,
void cacheStringAsset(AssetId id, String contents)and
void cacheBytesAsset(AssetId id, List<int> bytes).- The
equalsAssetmatcher has been removed, since there is no moreAsset
class.