packages: fix typos recieve => receive (#97488)

This commit is contained in:
Caio Agiani 2022-01-31 13:43:15 -03:00 committed by GitHub
parent 3a20b2c323
commit 29b44f79d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -135,7 +135,7 @@ final List<Object> _testsProjectExpectedOutput = <Object>[
/// A helper that verifies a full set of expected test results for the
/// [TestsProject] script.
void _expectStandardTestsProjectResults(TestEvents events) {
// Check we recieved all expected test events passed through from
// Check we received all expected test events passed through from
// package:test.
final List<Object> eventNames =
events.testNotifications.map((Map<String, Object?> e) => e['type']!).toList();

View File

@ -76,7 +76,7 @@ class DapTestClient {
/// Returns a Future that completes with the next [event] event.
Future<Event> event(String event) => _eventController.stream.firstWhere(
(Event e) => e.event == event,
orElse: () => throw 'Did not recieve $event event before stream closed');
orElse: () => throw 'Did not receive $event event before stream closed');
/// Returns a stream for [event] events.
Stream<Event> events(String event) {
@ -190,13 +190,13 @@ class DapTestClient {
/// event for [extension].
Future<Map<String, Object?>> serviceExtensionAdded(String extension) => serviceExtensionAddedEvents.firstWhere(
(Map<String, Object?> body) => body['extensionRPC'] == extension,
orElse: () => throw 'Did not recieve $extension extension added event before stream closed');
orElse: () => throw 'Did not receive $extension extension added event before stream closed');
/// Returns a Future that completes with the next serviceExtensionStateChanged
/// event for [extension].
Future<Map<String, Object?>> serviceExtensionStateChanged(String extension) => serviceExtensionStateChangedEvents.firstWhere(
(Map<String, Object?> body) => body['extension'] == extension,
orElse: () => throw 'Did not recieve $extension extension state changed event before stream closed');
orElse: () => throw 'Did not receive $extension extension state changed event before stream closed');
/// Initializes the debug adapter and launches [program]/[cwd] or calls the
/// custom [launch] method.
@ -285,7 +285,7 @@ class _OutgoingRequest {
extension DapTestClientExtension on DapTestClient {
/// Collects all output events until the program terminates.
///
/// These results include all events in the order they are recieved, including
/// These results include all events in the order they are received, including
/// console, stdout and stderr.
///
/// Only one of [start] or [launch] may be provided. Use [start] to customise
@ -325,7 +325,7 @@ extension DapTestClientExtension on DapTestClient {
/// Collects all output and test events until the program terminates.
///
/// These results include all events in the order they are recieved, including
/// These results include all events in the order they are received, including
/// console, stdout, stderr and test notifications from the test JSON reporter.
///
/// Only one of [start] or [launch] may be provided. Use [start] to customise