Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline Stateless Testing for Xmtp API #1713

Open
insipx opened this issue Mar 5, 2025 · 0 comments
Open

Offline Stateless Testing for Xmtp API #1713

insipx opened this issue Mar 5, 2025 · 0 comments

Comments

@insipx
Copy link
Contributor

insipx commented Mar 5, 2025

with the new xmtp_api_d14n crate (or even the older MlsTraits, although it may result in more clients) we can create the ability to 'statelessly test' XMTP API functions.

Rather than reach out to a network, we can implement the traits on a struct that holds a simple unbounded channel. The channel can transparently pass data that it got in request to response functions. This way we have much more control over the data that is represented in API calls, allowing us to do complex tests with streaming or updates that would otherwise be very difficult

@insipx insipx added this to libxmtp Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant