Unused and testing

⚓ Rust    📅 2026-03-22    👤 surdeus    👁️ 3      

surdeus

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Unused and testing

I have a structure with an implementation function I use for testing from another module. That is, the test suite for rolodex uses the person::build(...) method to build some people to test the rolodex interaction with people. The regular code for the program uses a different (person::to_person()) method to build person instances. However, using that from teh rolodex test would be quite messy.
Is there a convention for this situation?
Thanks,
Joel

6 posts - 3 participants

Read full topic

🏷️ Rust_feed