eclipse-uprotocol / up-rust

uProtocol Language Specific Library for Rust
Apache License 2.0
11 stars 9 forks source link

Expose MockTransport for use in other repositories #185

Open matthewd0123 opened 1 month ago

matthewd0123 commented 1 month ago

Hello,

I've been working on up-streamer-rust, and in the course of writing some tests, I found the need to mock some uTransports to test error conditions. I saw MockTransport in https://github.com/eclipse-uprotocol/up-rust/blob/main/src/utransport.rs and think it would be very useful to have in that repo, so am proposing to make that a pub. If that's acceptable, I will make the PR for it.

sophokles73 commented 1 month ago

A PR would be very welcome :-) I would suggest to make it conditional on either the test or util profile then ...