From 9f5ca886e8d45d9e1ed4489ca4a55504d02b1da2 Mon Sep 17 00:00:00 2001 From: Aske Simon Christensen Date: Tue, 27 Oct 2020 17:19:35 +0100 Subject: [PATCH] Update const finder test to match the new signature shaker --- tools/const_finder/test/const_finder_test.dart | 5 +++++ tools/const_finder/test/fixtures/lib/consts.dart | 3 +++ tools/const_finder/test/fixtures/lib/consts_and_non.dart | 3 +++ 3 files changed, 11 insertions(+) diff --git a/tools/const_finder/test/const_finder_test.dart b/tools/const_finder/test/const_finder_test.dart index 0046660bafefa..62449421a3a56 100644 --- a/tools/const_finder/test/const_finder_test.dart +++ b/tools/const_finder/test/const_finder_test.dart @@ -120,6 +120,11 @@ void _checkNonConsts() { 'line': 14, 'column': 26, }, + { + 'file': 'file://$fixtures/lib/consts_and_non.dart', + 'line': 17, + 'column': 41, + }, { 'file': 'file://$fixtures/lib/consts_and_non.dart', 'line': 17, diff --git a/tools/const_finder/test/fixtures/lib/consts.dart b/tools/const_finder/test/fixtures/lib/consts.dart index b5a7e10f1384c..ba2c8de10137c 100644 --- a/tools/const_finder/test/fixtures/lib/consts.dart +++ b/tools/const_finder/test/fixtures/lib/consts.dart @@ -45,6 +45,9 @@ class IgnoreMe { const IgnoreMe([this.target]); final Target target; + + @override + String toString() => target.toString(); } class StaticConstInitializer { diff --git a/tools/const_finder/test/fixtures/lib/consts_and_non.dart b/tools/const_finder/test/fixtures/lib/consts_and_non.dart index 9f4eeb8d04271..86529fa9be7c4 100644 --- a/tools/const_finder/test/fixtures/lib/consts_and_non.dart +++ b/tools/const_finder/test/fixtures/lib/consts_and_non.dart @@ -38,6 +38,9 @@ class IgnoreMe { const IgnoreMe([this.target]); final Target target; + + @override + String toString() => target.toString(); } void blah(Target target) {