Skip to content

tests: add tests for ffi bindings#10

Merged
bordumb merged 3 commits intomainfrom
dev-ffiTests
Mar 3, 2026
Merged

tests: add tests for ffi bindings#10
bordumb merged 3 commits intomainfrom
dev-ffiTests

Conversation

@bordumb
Copy link
Contributor

@bordumb bordumb commented Mar 3, 2026

No description provided.

bordumb added 3 commits March 3, 2026 21:19
Cover all 4 FFI entry points:
- ffi_verify_attestation_json: happy path, null ptrs, bad pk len, malformed JSON, wrong pk
- ffi_verify_chain_json: happy path, null ptrs, malformed JSON, bad pk len
- ffi_verify_device_authorization_json: happy path, null ptr, bad pk len
- ffi_verify_chain_with_witnesses: null ptr, bad pk len, zero-threshold happy path

Uses same pre-computed fixture as WASM binding tests (deterministic ring keypairs).
All tests use plain #[test] (not #[tokio::test]) since FFI creates its own tokio runtime.
@bordumb bordumb self-assigned this Mar 3, 2026
@vercel
Copy link

vercel bot commented Mar 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
auths Ready Ready Preview, Comment Mar 3, 2026 9:25pm

@bordumb bordumb merged commit 59ee3fa into main Mar 3, 2026
7 of 8 checks passed
@bordumb bordumb deleted the dev-ffiTests branch March 3, 2026 21:26
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.

1 participant