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

Commit

Permalink
remove native_test codegen test for assetId
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Fisher committed Nov 1, 2023
1 parent e1457c0 commit 6d735e4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 193 deletions.
138 changes: 0 additions & 138 deletions test/native_test/_expected_native_test_bindings_with_asset_id.dart

This file was deleted.

23 changes: 0 additions & 23 deletions test/native_test/config_with_asset_id.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions test/native_test/native_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,38 +59,6 @@ void main() {
}
});

test('generate_bindings with assetId', () {
final configFile =
File(path.join('test', 'native_test', 'config_with_asset_id.yaml'))
.absolute;
final outFile = File(
path.join('test', 'debug_generated',
'_expected_native_test_bindings_with_asset_id.dart'),
).absolute;

late Config config;
withChDir(configFile.path, () {
config = testConfigFromPath(configFile.path);
});
final library = parse(config);

library.generateFile(outFile);

try {
final actual = outFile.readAsStringSync().replaceAll('\r', '');
final expected = File(path.join(config.output))
.readAsStringSync()
.replaceAll('\r', '');
expect(actual, expected);
if (outFile.existsSync()) {
outFile.delete();
}
} catch (e) {
print('Failed test: Debug generated file: ${outFile.absolute.path}');
rethrow;
}
});

test('bool', () {
expect(bindings.Function1Bool(true), false);
expect(bindings.Function1Bool(false), true);
Expand Down

0 comments on commit 6d735e4

Please sign in to comment.