StimulusProducer: add duplicate-quale guard and attach-identity buffer lookup.

Provide ensureNoDuplicateQualeIface and getAttachedStimulusBufferByAttachIdentity
so session-scoped stimBuff plugins can reject duplicate quales and detach by
stable DAP line identity rather than full spec equality.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-14 11:02:18 -04:00
parent 7af684039d
commit 809861be2b
4 changed files with 353 additions and 0 deletions
@@ -41,3 +41,29 @@ add_dependencies(intrinThresholdParams_tests gtest_main)
add_test(
NAME intrinThresholdParams_tests
COMMAND intrinThresholdParams_tests)
add_executable(stimulusProducerQualeIface_tests
stimulusProducerQualeIface_tests.cpp
)
target_include_directories(stimulusProducerQualeIface_tests PRIVATE
${CMAKE_SOURCE_DIR}/include
${CMAKE_BINARY_DIR}/include
${CMAKE_SOURCE_DIR}/libspinscale/tests
${CMAKE_SOURCE_DIR}/smocore/include
)
target_link_libraries(stimulusProducerQualeIface_tests
gtest_main
attachmentSupport
spinscale
spinscale_test_support
${Boost_LIBRARIES}
${OPENCL_LIBRARIES}
)
add_dependencies(stimulusProducerQualeIface_tests gtest_main)
add_test(
NAME stimulusProducerQualeIface_tests
COMMAND stimulusProducerQualeIface_tests)