Skip to content

Commit 05ab71a

Browse files
authored
Updated mock location (dart-archive#2078)
1 parent a68a9b7 commit 05ab71a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/WritingLints.MD

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ When writing lints, it can be useful to have the [Dart Language Specification](h
8383

8484
### Writing Tests that Depend on Dart SDK Details
8585

86-
**Important:** when writing tests that use standard `dart:` libraries, it's important to keep in mind that linter tests use a mocked SDK that has only a small subset of the real one. We do this for performance reasons as it's FAR faster to load a mock SDK into memory than read the real one from disk. If you are writing tests that depend on something in the Dart SDK (for example, an interface such as `Iterable`), you may need to update our [mock content](https://github.com/dart-lang/linter/blob/master/test/mock_sdk.dart).
86+
**Important:** when writing tests that use standard `dart:` libraries, it's important to keep in mind that linter tests use a mocked SDK that has only a small subset of the real one. We do this for performance reasons as it's FAR faster to load a mock SDK into memory than read the real one from disk. If you are writing tests that depend on something in the Dart SDK (for example, an interface such as `Iterable`), you may need to update SDK mock content located in the `package:analyzer` [test utilities `mock_sdk.dart`](https://github.com/dart-lang/sdk/blob/master/pkg/analyzer/lib/src/test_utilities/mock_sdk.dart).
8787

8888
### Running Tests
8989

0 commit comments

Comments
 (0)