getControllerTestPath method

String getControllerTestPath(
  1. String stateMgmt,
  2. String basePath
)

Implementation

String getControllerTestPath(String stateMgmt, String basePath) {
  switch (stateMgmt) {
    case 'riverpod':
      return '$basePath/test/features/$featureName/presentation/controller/${featureName}_controller_test.dart';
    case 'bloc':
      return '$basePath/test/features/$featureName/presentation/controller/${featureName}_bloc_test.dart';
    case 'cubit':
      return '$basePath/test/features/$featureName/presentation/controller/${featureName}_cubit_test.dart';
    default:
      return '';
  }
}