Skip to content

Commit

Permalink
test: add unittest coverage - account screen
Browse files Browse the repository at this point in the history
  • Loading branch information
cevheri committed Dec 26, 2024
1 parent c5617c6 commit bfe66e2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
56 changes: 28 additions & 28 deletions lib/routes/get_routes/app_get_router_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,32 @@ import 'package:get/get.dart';
/// GetX Router Configuration
/// WARN: Not Tested
class AppGetRouterConfig {
static final List<GetPage> routes = [
GetPage(name: 'login', page: () => LoginScreen()),
GetPage(name: 'forgot-password', page: () => ForgotPasswordScreen()),
GetPage(name: 'change-password', page: () => ChangePasswordScreen()),
GetPage(name: 'home', page: () => HomeScreen()),
GetPage(name: 'settings', page: () => SettingsScreen()),
GetPage(name: 'account', page: () => AccountScreen()),
GetPage(name: 'user', page: () => ListUserScreen()),
//TODO user create, edit, view in GetX
// GetPage(name:'user/:id', page:()=>ViewUserScreen()),
// GetPage(name: 'user/new', page: () => CreateUserScreen()),
// GetPage(name: 'user/:id/edit', page: () => EditUserScreen(id: "")),

// last item is the 404 page
GetPage(name: 'not-found', page: () => const Scaffold(body: Center(child: Text('Not Found')))),
];

static GetMaterialApp routeBuilder(ThemeData light, ThemeData dark, String language) {
return GetMaterialApp(
title: 'Flutter Bloc Advance',
theme: light,
darkTheme: dark,
themeMode: ThemeMode.system,
getPages: routes,
initialRoute: 'login',
unknownRoute: routes.last,
);
}
// static final List<GetPage> routes = [
// GetPage(name: 'login', page: () => LoginScreen()),
// GetPage(name: 'forgot-password', page: () => ForgotPasswordScreen()),
// GetPage(name: 'change-password', page: () => ChangePasswordScreen()),
// GetPage(name: 'home', page: () => HomeScreen()),
// GetPage(name: 'settings', page: () => SettingsScreen()),
// GetPage(name: 'account', page: () => AccountScreen()),
// GetPage(name: 'user', page: () => ListUserScreen()),
// //TODO user create, edit, view in GetX
// // GetPage(name:'user/:id', page:()=>ViewUserScreen()),
// // GetPage(name: 'user/new', page: () => CreateUserScreen()),
// // GetPage(name: 'user/:id/edit', page: () => EditUserScreen(id: "")),
//
// // last item is the 404 page
// GetPage(name: 'not-found', page: () => const Scaffold(body: Center(child: Text('Not Found')))),
// ];
//
// static GetMaterialApp routeBuilder(ThemeData light, ThemeData dark, String language) {
// return GetMaterialApp(
// title: 'Flutter Bloc Advance',
// theme: light,
// darkTheme: dark,
// themeMode: ThemeMode.system,
// getPages: routes,
// initialRoute: 'login',
// unknownRoute: routes.last,
// );
// }
}
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ sonar.sources=lib/
sonar.tests=test/
#sonar.verbose=true
# exclude: lib/generated and lib/main dart files
sonar.exclusions=assets/**,lib/main/**,test/**,linux/**,macos/**,windows/**,build/**,ios/**,android/**,web/**,example/**,packages/**,pubspec.lock,functions/**,lib/generated/**,lib/i18n/**
sonar.exclusions=assets/**,lib/main/**,test/**,linux/**,macos/**,windows/**,build/**,ios/**,android/**,web/**,example/**,packages/**,pubspec.lock,functions/**,lib/generated/**,lib/i18n/**,lib/routes/app_router.dart

sonar.cpd.exclusions=lib/main/**

Expand Down

0 comments on commit bfe66e2

Please sign in to comment.