Unverified Commit 29b44f79 authored by Caio Agiani's avatar Caio Agiani Committed by GitHub

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

parent 3a20b2c3
......@@ -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();
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment