Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
liamappelbe committed Oct 31, 2023
1 parent 8e9faf6 commit 63bc6a7
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions test/native_objc_test/static_func_native_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ void main() {
logWarnings();
final dylib = File('test/native_objc_test/static_func_test.dylib');
verifySetupFile(dylib);
lib =
StaticFuncTestObjCLibrary(DynamicLibrary.open(dylib.absolute.path));
lib = StaticFuncTestObjCLibrary(DynamicLibrary.open(dylib.absolute.path));

executeInternalCommand = DynamicLibrary.process().lookupFunction<
Void Function(Pointer<Char>, Pointer<Void>),
Expand Down Expand Up @@ -64,9 +63,7 @@ void main() {
return counter;
}

test(
'Objects passed through static functions have correct ref counts',
() {
test('Objects passed through static functions have correct ref counts', () {
using((Arena arena) {
final (counter) = staticFuncOfObjectRefCountTest(arena);
doGC();
Expand All @@ -88,8 +85,7 @@ void main() {
return counter;
}

test(
'Nullables passed through static functions have correct ref counts',
test('Nullables passed through static functions have correct ref counts',
() {
using((Arena arena) {
final (counter) = staticFuncOfNullableObjectRefCountTest(arena);
Expand All @@ -111,9 +107,7 @@ void main() {
return block.pointer.cast();
}

test(
'Blocks passed through static functions have correct ref counts',
() {
test('Blocks passed through static functions have correct ref counts', () {
final (rawBlock) = staticFuncOfBlockRefCountTest();
doGC();
expect(getBlockRetainCount(rawBlock), 0);
Expand Down

0 comments on commit 63bc6a7

Please sign in to comment.