Skip to content

test: add request inspector callback smoke coverage#116

Open
ANAMASGARD wants to merge 1 commit into
bitcoindevkit:mainfrom
ANAMASGARD:test/request-inspector-callback-smoke
Open

test: add request inspector callback smoke coverage#116
ANAMASGARD wants to merge 1 commit into
bitcoindevkit:mainfrom
ANAMASGARD:test/request-inspector-callback-smoke

Conversation

@ANAMASGARD

@ANAMASGARD ANAMASGARD commented Jul 14, 2026

Copy link
Copy Markdown

Closes #107

Summary

  • add a Dart-side smoke test for the generated SyncScriptInspector callback/vtable path
  • run a minimal local Esplora-compatible server in a separate isolate
  • verify that the inspector callback is invoked during request processing
  • verify that the lifted Script and total arguments are usable Dart values

Why a separate isolate?

EsploraClient.sync_() blocks the calling Dart isolate through FFI. The fake HTTP server therefore runs in a separate isolate so it can continue accepting requests during the synchronous native call.

Scope

This test only covers generated callback callability and argument lifting. It does not test synchronization semantics, which remain the responsibility of bdk-ffi.

Verification

  • dart test test/request_inspector_callback_test.dart -r expanded
  • dart format --output=none --set-exit-if-changed lib test example
  • dart analyze --fatal-infos --fatal-warnings lib test example
  • dart test
image --- image --- image

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.

test: add Dart callback/vtable smoke coverage for request inspectors

1 participant