Skip to content

Rust::com FFI mock implementation for unit test#388

Open
bharatGoswami8 wants to merge 10 commits intoeclipse-score:mainfrom
bharatGoswami8:ffi_mock_impl_for_test
Open

Rust::com FFI mock implementation for unit test#388
bharatGoswami8 wants to merge 10 commits intoeclipse-score:mainfrom
bharatGoswami8:ffi_mock_impl_for_test

Conversation

@bharatGoswami8
Copy link
Copy Markdown
Contributor

@bharatGoswami8 bharatGoswami8 commented May 6, 2026

  • Added a native FFI bridge and a mock FFI bridge for deterministic local testing.
  • Runtime, consumer, and producer APIs are now pluggable via a bridge abstraction to support interchangeable backends.
  • Added an explicit error for requests that exceed the maximum allowed sample count.
  • Added mock-backed tests

* FFI mock api implemented for runtime unit test
* FFIBridge as generic parameter so that can be change between mock and Lola FFI
* Added unit test using FFI mock
* Moved Lola specific FFI implementation in seperate file
* Updated HandleContainer method for Lola and Mock
* Added global variable cleanup
* Updated validation check on test
@bharatGoswami8 bharatGoswami8 force-pushed the ffi_mock_impl_for_test branch from 3ddde38 to c33d943 Compare May 6, 2026 05:25
@bharatGoswami8 bharatGoswami8 force-pushed the ffi_mock_impl_for_test branch from 85c633c to 94efa87 Compare May 6, 2026 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants