Ian Hickson | 686d8f8 | 2018-08-14 20:33:58 -0700 | [diff] [blame] | 1 | // Copyright 2018 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Jonah Williams | 23a7535 | 2018-11-06 09:12:48 -0800 | [diff] [blame] | 5 | import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; |
| 6 | import 'package:test/test.dart' as test_package show TypeMatcher; |
Ian Hickson | 686d8f8 | 2018-08-14 20:33:58 -0700 | [diff] [blame] | 7 | |
Jonah Williams | 23a7535 | 2018-11-06 09:12:48 -0800 | [diff] [blame] | 8 | export 'package:test/test.dart' hide TypeMatcher, isInstanceOf; |
Ian Hickson | 686d8f8 | 2018-08-14 20:33:58 -0700 | [diff] [blame] | 9 | |
| 10 | // Defines a 'package:test' shim. |
| 11 | // TODO(ianh): Remove this file once https://github.com/dart-lang/matcher/issues/98 is fixed |
| 12 | |
| 13 | /// A matcher that compares the type of the actual value to the type argument T. |
Alexandre Ardhuin | e2d0b06 | 2018-09-18 05:54:03 +0200 | [diff] [blame] | 14 | Matcher isInstanceOf<T>() => test_package.TypeMatcher<T>(); |