Skip to content

Commit 4928765

Browse files
authored
[native_assets_builder] Test project for user-defines in dartdev (#2176)
1 parent 3fbbf07 commit 4928765

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

pkgs/native_assets_builder/test_data/manifest.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,10 @@
179179
- use_all_api/hook/build.dart
180180
- use_all_api/hook/link.dart
181181
- use_all_api/pubspec.yaml
182+
- user_defines/bin/user_defines.dart
182183
- user_defines/hook/build.dart
183184
- user_defines/pubspec.yaml
185+
- user_defines/test/user_defines_test.dart
184186
- wrong_build_output/hook/build.dart
185187
- wrong_build_output/pubspec.yaml
186188
- wrong_build_output_2/hook/build.dart
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
5+
void main() {
6+
print('Hello world!');
7+
}

pkgs/native_assets_builder/test_data/user_defines/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies:
1414

1515
dev_dependencies:
1616
lints: ^5.1.1
17+
test: ^1.25.15
1718

1819
hooks:
1920
user_defines:
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
5+
import 'package:test/test.dart';
6+
7+
void main() {
8+
test('my test', () {
9+
expect(1, equals(1));
10+
});
11+
}

0 commit comments

Comments
 (0)