Skip to content

ci: update dependency-analysis.yml #129

ci: update dependency-analysis.yml

ci: update dependency-analysis.yml #129

GitHub Actions / Tests succeeded Jan 3, 2024 in 0s

Tests ✅

Tests passed successfully

✅ test-results.json

57 tests were completed in 18s with 57 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/can_use_cached_translation_test.dart 4✅ 40ms
test/crowdin_extractor_test.dart 11✅ 81ms
test/crowdin_generator_test.dart 2✅ 64ms
test/crowdin_mapper_test.dart 3✅ 38ms
test/crowdin_storage_test.dart 6✅ 57ms
test/crowdin_test.dart 9✅ 93ms
test/gen/l10n_config_test.dart 5✅ 86ms
test/real_time_preview/crowdin_preview_manager_test.dart 13✅ 133ms
test/real_time_preview/crowdin_preview_widget_test.dart 2✅ 654ms
test/specify_plural_type_test.dart 2✅ 30ms

✅ test/can_use_cached_translation_test.dart

canUseCachedDistribution
  ✅ returns true when distributionTimeToUpdate is null and translationTimestamp and cachedTranslationTimestamp match
  ✅ returns false when distributionTimeToUpdate is null and translationTimestamp and cachedTranslationTimestamp do not match
  ✅ returns true when distributionTimeToUpdate is after the current time
  ✅ returns false when distributionTimeToUpdate is before the current time

✅ test/crowdin_extractor_test.dart

CrowdinFormatter findPlural methods tests
  ✅ returns null if plural key not found
  ✅ returns null if opening brace not found
  ✅ returns null if closing brace not found
  ✅ returns the correct plural string
findPlaceholders test
  ✅ should return correct placeholders for plurals
  ✅ get correct text for message with plural
  ✅ get correct text for message with variable and plural
  ✅ should return message.value for message without placeholders
findNumberPlaceholder test
  ✅ should return correct placeholders for plurals
  ✅ should return message.value for message without placeholders
  ✅ should return correct placeholders for number param

✅ test/crowdin_generator_test.dart

findPlaceholders test
  ✅ should return list of translation keys
  ✅ should return list of method parameters

✅ test/crowdin_mapper_test.dart

✅ should return same locale when locale is not in map
✅ should map locale correctly when language tag is used
✅ should return same locale when language tag is not in map

✅ test/crowdin_storage_test.dart

CrowdinStorage
  ✅ set and get translation timestamp
  ✅ set and get distribution
  ✅ get exception in case of empty distribution
  ✅ get null if timestamp is missed
  ✅ get null if distribution is missed
  ✅ get null if distribution locale mismatched

✅ test/crowdin_test.dart

setUpdateInterval
  ✅ when updatesInterval is greater than 15 minutes, returns updatesInterval
  ✅ when updatesInterval is less than 15 minutes, returns a Duration of 15 minutes
  ✅ when updatesInterval is exactly 15 minutes, returns updatesInterval
getText
  ✅ should return null if arb is null
  ✅ should return null if wrong key specified
  ✅ should return value if all arguments specified right
  ✅ should return value with a single parameter
  ✅ should return value with a plurals
  ✅ should return value with a count format param

✅ test/gen/l10n_config_test.dart

L10nConfig tests
  ✅ finalOutputDir returns default value if syntheticPackage is true
  ✅ finalOutputDir returns outputDir value if syntheticPackage is false and outputDir is specified
  ✅ finalOutputDir returns arbDir value if syntheticPackage is false and outputDir is not specified
  ✅ getL10nConfig throws exception when l10n.yaml file is not found
  ✅ getL10nConfig returns a L10nConfig object with the correct values

✅ test/real_time_preview/crowdin_preview_manager_test.dart

CrowdinPreviewManager updatePreviewArb tests
  ✅ updatePreviewArb should update value in the previewArb
  ✅ getFinalMappingData returns updated map if value exist
CrowdinPreviewManager getFinalMappingData tests
  ✅ getFinalMappingData returns updated map if value exist
  ✅ getFinalMappingData returns updated map with new values
  ✅ getFinalMappingData returns current map if mappingData is empty
  ✅ getFinalMappingData returns current map if mappingData is empty
getText test with realTimePreview enabled
  ✅ should return values from previewArb
  ✅ should return null if arb is null
  ✅ should return null if wrong key specified
  ✅ should return value if all arguments specified right
  ✅ should return value with a single parameter
  ✅ should return value with a plurals
  ✅ should return value with a count format param

✅ test/real_time_preview/crowdin_preview_widget_test.dart

CrowdinRealTimePreviewWidget
  ✅ CrowdinRealTimePreviewWidget get translation from fallback if withRealTimeUpdates disabled
  ✅ CrowdinRealTimePreviewWidget get updated value after previewArb update

✅ test/specify_plural_type_test.dart

✅ Returns the input type for Dart 2.19 or later
✅ Returns num type for Dart earlier than 2.19