Skip test and analysis of test requiring dart:ffi externally
Breaking changes in ffi. See external issue https://github.com/dart-lang/intl/issues/240
PiperOrigin-RevId: 280081054
diff --git a/analysis_options.yaml b/analysis_options.yaml
index 2299a33..76203fd 100644
--- a/analysis_options.yaml
+++ b/analysis_options.yaml
@@ -1,5 +1,8 @@
analyzer:
- errors:
+ exclude:
+ - test/number_format_compact_icu_test.dart # TODO(240): Update for FFI changes
+
+errors:
dead_code: error
override_on_non_overriding_method: error
unused_element: error
diff --git a/test/number_format_compact_icu_test.dart b/test/number_format_compact_icu_test.dart
index db6eacd..5eddb40 100644
--- a/test/number_format_compact_icu_test.dart
+++ b/test/number_format_compact_icu_test.dart
@@ -4,6 +4,7 @@
/// testing the package:intl implementation, they only help verify consistent
/// behaviour across platforms.
@TestOn("!browser")
+@Tags(['ffi'])
import 'dart:ffi';
import 'package:ffi/ffi.dart';
import 'package:test/test.dart';
@@ -266,8 +267,11 @@
/// Dart signature for
/// [unumf_formatDouble()](http://icu-project.org/apiref/icu4c/unumberformatter_8h.html#af5f79e43adc900f07b3ba90b6315944e)
-typedef UnumfFormatDoubleOp = void Function(Pointer<UNumberFormatter> uformatter,
- double value, Pointer<UFormattedNumber> uresult, Pointer<Int32> ec);
+typedef UnumfFormatDoubleOp = void Function(
+ Pointer<UNumberFormatter> uformatter,
+ double value,
+ Pointer<UFormattedNumber> uresult,
+ Pointer<Int32> ec);
/// C signature for
/// [unumf_formatInt()](http://icu-project.org/apiref/icu4c/unumberformatter_8h.html#a459b9313ed05fc98c9cd125eb9c1a625)