Skip to content

Conversation

@reditable
Copy link
Contributor

@reditable reditable commented Feb 12, 2025

This PR introduces #[test_only] functions to create test instances of DataSource, PriceInfoObject, and State. These helper functions simplify unit testing by providing easy-to-instantiate objects without affecting production logic.

@vercel
Copy link

vercel bot commented Feb 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
component-library ⬜️ Ignored (Inspect) Visit Preview Feb 12, 2025 4:20am

@vercel
Copy link

vercel bot commented Feb 12, 2025

Someone is attempting to deploy a commit to the Pyth Network Team on Vercel.

A member of the Team first needs to authorize it.

@reditable reditable changed the title add test_only new method into sui contract Add test-only constructors for easier unit testing Feb 12, 2025
Copy link
Collaborator

@ali-behjati ali-behjati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

@ali-behjati ali-behjati merged commit 27bba80 into pyth-network:main Feb 20, 2025
4 of 9 checks passed
@reditable reditable deleted the add-test-only-constructor branch February 21, 2025 08:21
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.

2 participants