dde-file-manager icon indicating copy to clipboard operation
dde-file-manager copied to clipboard

test(dfmplugin-workspace): add comprehensive unit tests for workspace…

Open add-uos opened this issue 1 day ago • 2 comments

… and private components

  • Add unit tests for workspace.cpp with 17 test cases covering core functionality
  • Add unit tests for private directory components:
    • BaseItemDelegatePrivate: 18 test cases for delegate functionality
    • FileViewPrivate: 16 test cases for view operations
    • IconItemDelegatePrivate: 18 test cases for icon delegation
    • IconItemEditorPrivate: 24 test cases for icon editing
    • ListItemDelegatePrivate: 7 test cases for list delegation
    • RenameBarPrivate: 22 test cases for rename functionality
    • DelegateCommon: utility functions testing
  • Add ExpandedItem tests: 29 test cases for expanded item functionality
  • Fix compilation and runtime issues with proper stubbing
  • Ensure all tests follow AIR principles (Automatic, Independent, Repeatable)
  • Use EXPECT_* assertions over ASSERT_* to prevent memory leaks
  • Proper memory management in SetUp/TearDown methods

add-uos avatar Dec 15 '25 08:12 add-uos