Skip to content

Commit

Permalink
chore: codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Jul 6, 2024
1 parent 1ea47e7 commit 938a209
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Future<void> main({bool skipRustLibInit = false}) async {
var back2 =
await loopBackTwinRustAsyncSse(opaque: back1) as String Function();
expect(back2(), 'Test_String');
expect(identical(back2, f), isTrue);
if (!kIsWeb) expect(identical(back2, f), isTrue);
});

test('drop', () async {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Future<void> main({bool skipRustLibInit = false}) async {
expect(back1(), 'Test_String');
var back2 = await loopBackTwinRustAsync(opaque: back1) as String Function();
expect(back2(), 'Test_String');
expect(identical(back2, f), isTrue);
if (!kIsWeb) expect(identical(back2, f), isTrue);
});

test('drop', () async {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Future<void> main({bool skipRustLibInit = false}) async {
expect(back1(), 'Test_String');
var back2 = await loopBackTwinSse(opaque: back1) as String Function();
expect(back2(), 'Test_String');
expect(identical(back2, f), isTrue);
if (!kIsWeb) expect(identical(back2, f), isTrue);
});

test('drop', () async {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Future<void> main({bool skipRustLibInit = false}) async {
expect(back1(), 'Test_String');
var back2 = await loopBackTwinSyncSse(opaque: back1) as String Function();
expect(back2(), 'Test_String');
expect(identical(back2, f), isTrue);
if (!kIsWeb) expect(identical(back2, f), isTrue);
});

test('drop', () async {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Future<void> main({bool skipRustLibInit = false}) async {
expect(back1(), 'Test_String');
var back2 = await loopBackTwinSync(opaque: back1) as String Function();
expect(back2(), 'Test_String');
expect(identical(back2, f), isTrue);
if (!kIsWeb) expect(identical(back2, f), isTrue);
});

test('drop', () async {
Expand Down
2 changes: 1 addition & 1 deletion frb_example/pure_dart_pde/test/api/dart_opaque_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Future<void> main({bool skipRustLibInit = false}) async {
expect(back1(), 'Test_String');
var back2 = await loopBackTwinNormal(opaque: back1) as String Function();
expect(back2(), 'Test_String');
expect(identical(back2, f), isTrue);
if (!kIsWeb) expect(identical(back2, f), isTrue);
});

test('drop', () async {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Future<void> main({bool skipRustLibInit = false}) async {
expect(back1(), 'Test_String');
var back2 = await loopBackTwinRustAsync(opaque: back1) as String Function();
expect(back2(), 'Test_String');
expect(identical(back2, f), isTrue);
if (!kIsWeb) expect(identical(back2, f), isTrue);
});

test('drop', () async {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Future<void> main({bool skipRustLibInit = false}) async {
expect(back1(), 'Test_String');
var back2 = await loopBackTwinSync(opaque: back1) as String Function();
expect(back2(), 'Test_String');
expect(identical(back2, f), isTrue);
if (!kIsWeb) expect(identical(back2, f), isTrue);
});

test('drop', () async {
Expand Down

0 comments on commit 938a209

Please sign in to comment.