Initial commit

This commit is contained in:
KIMGYEONGRAN
2025-10-02 17:42:16 +09:00
commit f11ecbabff
130 changed files with 5462 additions and 0 deletions

22
test/widget_test.dart Normal file
View File

@@ -0,0 +1,22 @@
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package.flutter_test/flutter_test.dart';
import 'package:smarthelmet_app/main.dart';
void main() {
testWidgets('Smart Helmet App UI smoke test', (WidgetTester tester) async {
// 1. 올바른 위젯 클래스 이름(SmartHelmetApp)으로 앱을 빌드합니다.
await tester.pumpWidget(const SmartHelmetApp());
// 2. 우리 앱의 UI에 실제로 있는 'SYSTEM OVERVIEW' 텍스트를 찾습니다.
expect(find.text('SYSTEM OVERVIEW'), findsOneWidget);
// 3. 우리 앱에는 '1'이라는 텍스트가 없으므로, 없는 것을 확인하는 테스트를 추가할 수 있습니다.
expect(find.text('1'), findsNothing);
});
}