File tree Expand file tree Collapse file tree 3 files changed +4
-21
lines changed
build_runner_core/test/generate
build_runner/test/generate Expand file tree Collapse file tree 3 files changed +4
-21
lines changed Original file line number Diff line number Diff line change @@ -16,23 +16,16 @@ final Matcher throwsCorruptedException = throwsA(
16
16
final Matcher duplicateAssetNodeException =
17
17
const TypeMatcher <DuplicateAssetNodeException >();
18
18
19
- Matcher equalsAssetGraph (
20
- AssetGraph expected, {
21
- bool checkPreviousInputsDigest = true ,
22
- }) => _AssetGraphMatcher (expected, checkPreviousInputsDigest);
19
+ Matcher equalsAssetGraph (AssetGraph expected) => _AssetGraphMatcher (expected);
23
20
24
21
class _AssetGraphMatcher extends Matcher {
25
22
final AssetGraph _expected;
26
- final bool checkPreviousInputsDigest;
27
23
final Matcher _matcher;
28
24
29
- _AssetGraphMatcher (this ._expected, this .checkPreviousInputsDigest )
25
+ _AssetGraphMatcher (this ._expected)
30
26
: _matcher = equals (_graphToList (_expected));
31
27
32
28
/// Converts [graph] to a list of [AssetNode] , sorted by ID, for comparison.
33
- ///
34
- /// If [checkPreviousInputsDigest] is false, removes `previousInputDigest`
35
- /// fields so they won't be compared.
36
29
static List <AssetNode > _graphToList (AssetGraph graph) =>
37
30
graph.allNodes.toList ()
38
31
..sort ((a, b) => a.id.toString ().compareTo (b.id.toString ()));
Original file line number Diff line number Diff line change @@ -410,12 +410,7 @@ void main() {
410
410
], computeDigest (cTxtId, 'c' )),
411
411
);
412
412
413
- // TODO: We dont have a shared way of computing the combined input
414
- // hashes today, but eventually we should test those here too.
415
- expect (
416
- cachedGraph,
417
- equalsAssetGraph (expectedGraph, checkPreviousInputsDigest: false ),
418
- );
413
+ expect (cachedGraph, equalsAssetGraph (expectedGraph));
419
414
expect (
420
415
cachedGraph.allPostProcessBuildStepOutputs,
421
416
expectedGraph.allPostProcessBuildStepOutputs,
Original file line number Diff line number Diff line change @@ -1357,12 +1357,7 @@ void main() {
1357
1357
outputs: {bPostCopyNode.id},
1358
1358
);
1359
1359
1360
- // TODO: We dont have a shared way of computing the combined input hashes
1361
- // today, but eventually we should test those here too.
1362
- expect (
1363
- cachedGraph,
1364
- equalsAssetGraph (expectedGraph, checkPreviousInputsDigest: false ),
1365
- );
1360
+ expect (cachedGraph, equalsAssetGraph (expectedGraph));
1366
1361
expect (
1367
1362
cachedGraph.allPostProcessBuildStepOutputs,
1368
1363
expectedGraph.allPostProcessBuildStepOutputs,
You can’t perform that action at this time.
0 commit comments