dart-sdk/pkg/front_end/testcases
Chloe Stefantsova d337c62c00 [cfe] Allow null representation types in .call tear-offs
Closes https://github.com/dart-lang/sdk/issues/54768

Change-Id: I4624bdc7e02b79c174fa661f4bda7eb633673dea
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/349502
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
2024-02-02 13:32:22 +00:00
..
agnostic
class_modifiers [cfe] Replace line/column with * 2024-01-23 15:34:39 +00:00
const_functions [cfe] Add isImplicitCall to DynamicInvocation 2024-01-19 08:39:30 +00:00
constructor_tearoffs [cfe] Add isImplicitCall to DynamicInvocation 2024-01-19 08:39:30 +00:00
dart2js [dart:js_interop] Add isA helper 2024-01-25 18:52:45 +00:00
dart2wasm
dartdevc [dart:js_interop] Add isA helper 2024-01-25 18:52:45 +00:00
dartino
enhanced_enums [cfe] Replace line/column with * 2024-01-23 15:34:39 +00:00
expression [cfe] Add isImplicitCall to DynamicInvocation 2024-01-19 08:39:30 +00:00
extension_types [cfe] Allow null representation types in .call tear-offs 2024-02-02 13:32:22 +00:00
extensions [cfe] Add isImplicitCall to DynamicInvocation 2024-01-19 08:39:30 +00:00
general Reland "[vm/ffi] Introduce Struct.create and Union.create" 2024-02-01 18:28:03 +00:00
generic_metadata
implicit_getter_calls
incremental [macros] Add dart:_macros 2024-02-02 07:47:59 +00:00
inference [CFE] Strong/weak suites takes error-and-ok-comments into account 2024-01-18 14:40:08 +00:00
inference_new [cfe] Add isImplicitCall to DynamicInvocation 2024-01-19 08:39:30 +00:00
inference_update_1
inference_update_2
instantiate_to_bound
late_lowering [cfe] Move hoisted variables after variable caches 2024-01-16 09:09:29 +00:00
late_lowering_sentinel
macros
named_arguments_anywhere [cfe] Add isImplicitCall to DynamicInvocation 2024-01-19 08:39:30 +00:00
new_const_insertion
nnbd Reland "[vm/ffi] Introduce Struct.create and Union.create" 2024-02-01 18:28:03 +00:00
nnbd_mixed [CFE] Strong/weak suites takes error-and-ok-comments into account 2024-01-18 14:40:08 +00:00
no_such_method_forwarders [cfe] Add isImplicitCall to DynamicInvocation 2024-01-19 08:39:30 +00:00
none [cfe] Add isImplicitCall to DynamicInvocation 2024-01-19 08:39:30 +00:00
nonfunction_type_aliases
offsets
patterns [CFE] Strong/weak suites takes error-and-ok-comments into account 2024-01-18 14:40:08 +00:00
rasta [cfe] Add isImplicitCall to DynamicInvocation 2024-01-19 08:39:30 +00:00
records [cfe] Report errors on attempts to call a record type 2024-01-31 08:46:40 +00:00
regress [cfe] Add isImplicitCall to DynamicInvocation 2024-01-19 08:39:30 +00:00
runtime_checks [cfe] Add isImplicitCall to DynamicInvocation 2024-01-19 08:39:30 +00:00
runtime_checks_new
sealed_class
set_literals
static_field_lowering
super_parameters
triple_shift
unified_collections
unscheduled_experiments
variance
expression.status
incremental.status
incremental_bulk_compiler_full.status
incremental_bulk_compiler_smoke.status
incremental_dartino.status
modular.status
outline.status
README.md
sdk.status
strong.status
textual_outline.status
weak.status

Overview

The testcases in this directory and its subdirectory are all compiled in various different configurations designed to test various aspects of Fasta (or more generally, package:front_end).

The configurations are described below.

The source of truth for these configurations is the file pkg/front_end/testing.json.

Updating all expectations

To update test expectations for all tests at once, run:

dart pkg/front_end/tool/update_expectations.dart

Note that this takes a long time and should only be used when many tests need updating.

Updating expectations for a single test

To update the expectations for a specific test, provide the folder and test name as an argument.

For example, if you want to update the test expectations for a test, such as pkg/front_end/testcases/general/abstract_instantiation.dart, then run:

dart pkg/front_end/tool/update_expectations.dart general/abstract_instantiation

Updating expectations for all tests in a folder

If you want to update the test expectations for a specific folder of tests such as the pkg/front_end/testcases/general/ folder, then run:

dart pkg/front_end/tool/update_expectations.dart general/...

Dart 1.0 Outlines

./pkg/front_end/tool/fasta testing -DupdateExpectations=true outline/test1 outline/test2 ...

Dart 2.0 (strong mode)

./pkg/front_end/tool/fasta testing -DupdateExpectations=true -DupdateComments=true strong/test1 strong/test2 ...

Note: strong mode configuration additionally parses comments in the test file and can precisely match internal details of the compiler such as the inferred type of an expression or if a warning was emitted at a given location.