Skip to content

Refactor: Simplify async code in UserSpace.swift #586

Refactor: Simplify async code in UserSpace.swift

Refactor: Simplify async code in UserSpace.swift #586

GitHub Actions / Xcode test results succeeded Jun 4, 2024 in 0s

Xcode test results

Testing workspace Keyboard Cowboy with scheme Keyboard-Cowboy

Summary

TotalSuccess PassedFailure FailedSkipped SkippedExpected Failure Expected Failure⏱️ Time
40400000.04s

Test Summary

UnitTests

  • Device: Apple Virtual Machine 1, 14.5 (23F79)
  • SDK: macOS 14.5, 14.5
TestTotalSuccessFailureSkippedExpected Failure
test-class ApplicationActivityMonitorTests11000
test-class ApplicationTriggerControllerTests33000
test-class ApplicationTriggerTests11000
test-class CommandTests11000
test-class ContentViewActionReducerTests55000
test-class DropCommandsControllerTests55000
test-class KeyShortcutTests99000
test-class KeyboardShortcutTriggerTests11000
test-class KeyboardShortcutsControllerTests11000
test-class WorkflowTests1313000

Failure Failures

All tests passed 🎉


Code Coverage

Coverage Covered Executable
Keyboard Cowboy.app 5.22 % 2889 55381
  AXTableResolver.swift 0.00 % 0 19
  FileMenu.swift 88.46 % 23 26
  ApplicationCommandRunner.swift 16.18 % 11 68
  PreviewProvider+Extentions.swift 0.00 % 0 13
  AppSymbol.swift 0.00 % 0 168
  UIElementIconView.swift 0.00 % 0 92
  AXTextEntryAreaResolver.swift 0.00 % 0 23
  DetailCommandContainerActionReducer.swift 0.00 % 0 17
  MenuIconView.swift 0.00 % 0 240
  AppsIcon.swift 0.00 % 0 80
  URLSymbol.swift 0.00 % 0 68
  ShortcutCommand.swift 15.38 % 4 26
  ViewMenu.swift 100.00 % 4 4
  WorkflowRunner.swift 7.58 % 5 66
  ContentListDropItem.swift 0.00 % 0 6
  ContentCoordinator.swift 0.00 % 0 174
  ContentListEmptyView.swift 0.00 % 0 136
  WorkflowCommandEmptyListView.swift 0.00 % 0 136
  CurrentUserModesView.swift 45.83 % 11 24
  ContentItemView.swift 0.00 % 0 187
  ShortcutStore.swift 12.12 % 4 33
  CustomSystemRoutine.swift 0.00 % 0 7
  WorkflowCommandListContextMenuView.swift 0.00 % 0 40
  WorkflowCommandListView.swift 0.00 % 0 43
  ViewModelPublisher.swift 66.67 % 6 9
  GeometryPreferenceKeyView.swift 0.00 % 0 9
  WindowManagementAnimationDurationView.swift 0.00 % 0 103
  WindowManager.swift 18.52 % 5 27
  KeyboardCommand.swift 70.21 % 33 47
  AddUserModeView.swift 0.00 % 0 51
  ContainerView.swift 0.00 % 0 148
  NSColor+Extensions.swift 0.00 % 0 32
  MacroRunner.swift 12.50 % 4 32
  AXScrollAreaResolver.swift 0.00 % 0 34
  BringToFrontApplicationPlugin.swift 12.50 % 3 24
  OpenCommand.swift 47.50 % 19 40
  Binding+Extensions.swift 0.00 % 0 8
  DesignTime+Extensions.swift 0.00 % 0 133
  Letter.swift 0.00 % 0 1
  CommandViewModel.swift 0.00 % 0 42
  NotificationWindow.swift 0.00 % 0 29
  ConfigurationHeaderView.swift 0.00 % 0 8
  AppLoadingView.swift 0.00 % 0 26
  NumberTextField.swift 0.00 % 0 29
  WorkspacePublisher.swift 100.00 % 17 17
  NotificationView.swift 0.00 % 0 57
  SnippetTrigger.swift 0.00 % 0 3
  ContentListFilterView.swift 0.00 % 0 123
  ImprovementIconView.swift 0.00 % 0 98
  UserModesBezelController.swift 67.80 % 40 59
  SystemWindowRelativeFocusLeft.swift 0.00 % 0 34
  WindowManagementCommandView.swift 0.00 % 0 1641
  MainWindow.swift 84.76 % 139 164
  AXCollectionResolver.swift 0.00 % 0 32
  SystemWindowRelativeFocusRight.swift 0.00 % 0 34
  ScriptSymbol.swift 0.00 % 0 77
  EditableKeyboardShortcutsItemView.swift 0.00 % 0 133
  StorageSettingsView.swift 0.00 % 0 6
  WorkflowTriggerListView.swift 0.00 % 0 199
  SplashView.swift 2.45 % 5 204
  SystemInfo.swift 0.00 % 0 17
  WindowStore.swift 0.00 % 0 192
  SidebarNewConfigurationPopoverView.swift 0.00 % 0 60
  AppMenuBarExtras.swift 84.21 % 96 114
  BezelNotificationController.swift 0.00 % 0 74
  SystemCommand.swift 5.26 % 4 76
  NewCommandImageView.swift 0.00 % 0 82
  Release3_22_0.swift 0.00 % 0 660
  KeyboardShortcutTrigger.swift 100.00 % 11 11
  MenubarIcon.swift 0.00 % 0 88
  CommandSymbol.swift 0.00 % 0 134
  ScriptCommandRunner.swift 25.00 % 7 28
  SidebarDeleteConfigurationPopoverView.swift 0.00 % 0 74
  MainWindowView.swift 4.17 % 5 120
  SidebarMapper.swift 0.00 % 0 26
  AutoCompletionView.swift 0.00 % 0 79
  SBShortcuts.swift 0.00 % 0 36
  SettingsView.swift 0.00 % 0 21
  OpenURLSwapTabsPlugin.swift 3.90 % 3 77
  AXHTMLResolver.swift 0.00 % 0 44
  GroupsEmptyListView.swift 0.00 % 0 97
  MouseCommandRunner.swift 0.00 % 0 123
  IconOverview.swift 0.00 % 0 78
  OpenCommandRunner.swift 12.73 % 7 55
  MachPortUINotifications.swift 7.52 % 10 133
  NewCommandMouseView.swift 0.00 % 0 128
  SBFinder.swift 0.00 % 0 24
  EmptyConfigurationView.swift 3.12 % 10 321
  WorkspaceProviding.swift 0.00 % 0 9
  ContentHeaderView.swift 0.00 % 0 67
  OpenPanelController.swift 2.50 % 1 40
  NewCommandButtonView.swift 0.00 % 0 18
  ScriptCommand.swift 22.06 % 15 68
  CommandPanelView.swift 0.00 % 0 613
  NewSystemCommandView.swift 0.00 % 0 251
  CommandPanelCoordinator.swift 2.48 % 4 161
  DetailViewModel.swift 0.00 % 0 39
  AXEditorResolver.swift 0.00 % 0 23
  SystemWindowFocus.swift 0.00 % 0 55
  BatteryInfo.swift 0.00 % 0 67
  SystemCommandView.swift 0.00 % 0 207
  MutableCollection+Extensions.swift 0.00 % 0 41
  AppleScriptPlugin.swift 13.27 % 13 98
  ConfigurationContainerView.swift 0.00 % 0 33
  RunningApplication.swift 100.00 % 3 3
  UserModeIconView.swift 0.00 % 0 45
  OpenURLParser.swift 0.00 % 0 16
  WorkflowKeyboardTriggerView.swift 0.00 % 0 116
  ContentViewActionReducer.swift 48.57 % 34 70
  RelativeFocusIconView.swift 0.00 % 0 179
  UIImprovementIconView.swift 0.00 % 0 56
  ContentImageView.swift 0.00 % 0 78
  KeyBackgroundView.swift 0.00 % 0 54
  ContentItemBadgeOverlayView.swift 0.00 % 0 25
  AppUpdater.swift 40.00 % 4 10
  CommandLineView.swift 28.50 % 120 421
  WorkflowApplicationTriggerView.swift 0.00 % 0 447
  UUTypes.swift 0.00 % 0 15
  ContentItemIsDisabledOverlayView.swift 0.00 % 0 24
  Array+Extensions.swift 0.00 % 0 28
  CommandListDropItem.swift 0.00 % 0 6
  NewCommandApplicationView.swift 0.00 % 0 363
  TuistAssets+KeyboardCowboy.swift 0.00 % 0 30
  EditWorfklowGroupView.swift 0.00 % 0 525
  EditConfigurationView.swift 0.00 % 0 116
  NewCommandValidationView.swift 0.00 % 0 298
  SingleDetailBackgroundView.swift 0.00 % 0 74
  UIElementCommandView.swift 0.00 % 0 859
  WorkflowGroupIconView.swift 0.00 % 0 49
  MachPortCoordinator.swift 2.99 % 15 501
  WindowRunnerMoveToNextDisplayRelative.swift 0.00 % 0 54
  WindowManagementIconView.swift 0.00 % 0 307
  RuleHeaderView.swift 0.00 % 0 120
  DebounceController.swift 0.00 % 0 28
  NewCommandBuiltInView.swift 0.00 % 0 392
  SidebarCoordinator.swift 0.00 % 0 172
  KeyboardCowboyConfiguration.swift 86.87 % 172 198
  NotificationPanel.swift 90.63 % 29 32
  SymbolPalette.swift 0.00 % 0 138
  KeyboardCommandRunner.swift 3.49 % 3 86
  ContentKeyboardImageView.swift 0.00 % 0 26
  Release3_23_2.swift 0.00 % 0 762
  ContentTypeImageView.swift 0.00 % 0 14
  MinimizeAllIconView.swift 0.00 % 0 183
  TextCommandRunner.swift 6.52 % 3 46
  MagicVarsIconView.swift 0.00 % 0 102
  MouseCommand.swift 0.00 % 0 92
  Set+Extensions.swift 0.00 % 0 16
  NewCommandMenuBarView.swift 0.00 % 0 779
  BugFixIconView.swift 0.00 % 0 48
  NotificationCenter+Extensions.swift 0.00 % 0 4
  SystemWindowRelativeFocusDown.swift 0.00 % 0 25
  KeyCodesStore.swift 16.67 % 7 42
  OpenFolderInFinder.swift 20.83 % 5 24
  Application.swift 49.12 % 28 57
  WindowRunnerFullscreen.swift 0.00 % 0 63
  KeyboardShortcutView.swift 0.00 % 0 30
  ConfigurationStore.swift 4.69 % 3 64
  KeyboardShortcutsController.swift 64.86 % 203 313
  AppStorageContainer.swift 100.00 % 11 11
  FileSystemTextFieldStyle.swift 0.00 % 0 18
  KeyboardIconView.swift 0.00 % 0 70
  AXOutlineResolver.swift 0.00 % 0 17
  FolderIcon.swift 0.00 % 0 285
  Color+Extensions.swift 0.00 % 0 39
  WorkflowNotificationView.swift 0.00 % 0 355
  Release3_24_0.swift 0.00 % 0 1365
  AppCache.swift 0.00 % 0 46
  HelpMenu.swift 75.61 % 31 41
  AddButtonView.swift 0.00 % 0 110
  NewCommandWindowManagementView.swift 0.00 % 0 127
  WorkflowOuputView.swift 0.00 % 0 95
  TextCommandView.swift 0.00 % 0 7
  ActivateApplicationPlugin.swift 11.54 % 3 26
  DropCommandsController.swift 98.04 % 50 51
  

Details

Test Details

UnitTestsback

ApplicationActivityMonitorTests back

SuccessFailureSkippedExpected Failure⏱️
1 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testPreviousApplication()

ApplicationTriggerControllerTests back

SuccessFailureSkippedExpected Failure⏱️
3 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testApplicationTriggerController_closed()
Successtest-method testApplicationTriggerController_frontMost()
Successtest-method testApplicationTriggerController_launched()

ApplicationTriggerTests back

SuccessFailureSkippedExpected Failure⏱️
1 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testCopy()

CommandTests back

SuccessFailureSkippedExpected Failure⏱️
1 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testCopy()

ContentViewActionReducerTests back

SuccessFailureSkippedExpected Failure⏱️
5 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testReduceContentViewAction_addWorkflow()
Successtest-method testReduceContentViewAction_moveWorkflows()
Successtest-method testReduceContentViewAction_moveWorkflowsToGroup()
Successtest-method testReduceContentViewAction_noop()
Successtest-method testReduceContentViewAction_removeWorflows()

DropCommandsControllerTests back

SuccessFailureSkippedExpected Failure⏱️
5 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testGeneratingAppleScriptCommand()
Successtest-method testGeneratingApplicationCommand()
Successtest-method testGeneratingFileCommand()
Successtest-method testGeneratingShellScriptCommand()
Successtest-method testGeneratingWebCommand()

KeyShortcutTests back

SuccessFailureSkippedExpected Failure⏱️
9 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testEmptyMethod()
Successtest-method testFromDecoder_ID_Key_Data()
Successtest-method testFromDecoder_ID_Key_LHS_Data()
Successtest-method testFromDecoder_ID_Key_LHS_Modifier_Data()
Successtest-method testFromDecoder_ID_Key_LHS_Modifiers_Data()
Successtest-method testFromDecoder_Key_Data()
Successtest-method testModifersDisplayValue()
Successtest-method testStringValue()
Successtest-method testValidationValue()

KeyboardShortcutTriggerTests back

SuccessFailureSkippedExpected Failure⏱️
1 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testCopy()

KeyboardShortcutsControllerTests back

SuccessFailureSkippedExpected Failure⏱️
1 (100%)0 (0%)0 (0%)0 (0%)0.03s
Successtest-method testLookupInLargeCollection()

WorkflowTests back

SuccessFailureSkippedExpected Failure⏱️
13 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testCopy()
Successtest-method testResolveUserEnvironmentForApplication()
Successtest-method testResolveUserEnvironmentForBuiltInCommands()
Successtest-method testResolveUserEnvironmentForKeyboardCommands()
Successtest-method testResolveUserEnvironmentForMenuBarCommands()
Successtest-method testResolveUserEnvironmentForMouseCommands()
Successtest-method testResolveUserEnvironmentForOpenCommand_path()
Successtest-method testResolveUserEnvironmentForScriptCommand_inline()
Successtest-method testResolveUserEnvironmentForScriptCommand_path()
Successtest-method testResolveUserEnvironmentForShortcutCommands()
Successtest-method testResolveUserEnvironmentForSystemCommand()
Successtest-method testResolveUserEnvironmentForTextCommand()
Successtest-method testResolveUserEnvironmentForWindowManagement()