Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 5, 2026

  • Remove testOnly_getNumRenderObjects from SimulationFacade.h interface
  • Remove testOnly_getNumRenderObjects from SimulationFacadeImpl.h and SimulationFacadeImpl.cpp
  • Remove testOnly_getNumRenderObjects from EngineWorker.h and EngineWorker.cpp
  • Remove testOnly_getNumRenderObjects from SimulationCudaFacade.cuh and SimulationCudaFacade.cu
  • Remove duplicate getNumRenderObjects_* tests (kept enhanced copyBuffers_* tests)
  • Add missing test cases: copyBuffers_multipleParticles, copyBuffers_triangularCluster, copyBuffers_creature
  • Extend copyBuffers_cellsWithConnections with downloadSelectedConnectionData buffer inspection
  • Extend copyBuffers_singleCell with downloadSelectedObjectData buffer inspection
  • Build and verify all tests pass (15 GeometryTests)
Original prompt

Remove the test access testOnly_getNumRenderObjects and rewrite the GeometryTests which test getNumRenderObjects by using tryCopyBuffersFromCudaToOpenGL. Those tests should also be extended by inspecting the buffers via downloadSelectedConnectionData. Check for tests which are quite similar and remove logical duplicates or unite them.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

- Remove testOnly_getNumRenderObjects from SimulationFacade.h interface
- Remove testOnly_getNumRenderObjects from SimulationFacadeImpl
- Remove testOnly_getNumRenderObjects from EngineWorker
- Remove testOnly_getNumRenderObjects from SimulationCudaFacade
- Remove duplicate getNumRenderObjects_* tests, keep enhanced copyBuffers_* tests
- Add copyBuffers_multipleParticles, copyBuffers_triangularCluster, copyBuffers_creature tests
- Extend copyBuffers_cellsWithConnections to use downloadSelectedConnectionData
- All 15 GeometryTests pass, 870 EngineTests pass (867 passed, 3 skipped)

Co-authored-by: chrxh <[email protected]>
Copilot AI changed the title [WIP] Remove test access and rewrite GeometryTests for getNumRenderObjects Remove testOnly_getNumRenderObjects and consolidate GeometryTests Jan 5, 2026
Copilot AI requested a review from chrxh January 5, 2026 16:50
auto numObjects = _simulationFacade->testOnly_getNumRenderObjects();
_simulationFacade->tryCopyBuffersFromCudaToOpenGL(geometryBuffers, visibleWorldRect);

auto numObjects = geometryBuffers->getNumObjects();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot Check also the buffer entries by using downloadSelectedObjectData (see the other tests selectedObjectData*)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added buffer verification via downloadSelectedObjectData in commit b9dbca1. The test now selects the cell and verifies selectedObjects.size() == 1.

Copilot AI requested a review from chrxh January 5, 2026 17:16
@chrxh chrxh marked this pull request as ready for review January 5, 2026 20:45
@chrxh chrxh merged commit 79e0049 into develop Jan 5, 2026
1 check passed
@chrxh chrxh deleted the copilot/remove-test-access-and-refactor-tests branch January 5, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants