onlyy expose one new function
Some checks failed
Rust/sat-rs/pipeline/pr-main There was a failure building this commit

This commit is contained in:
Robin Müller 2024-02-01 13:45:40 +01:00
parent cd26cecafb
commit 68a5f67589
Signed by: muellerr
GPG Key ID: A649FB78196E3849

View File

@ -17,25 +17,7 @@ pub struct PusService17TestHandler<TcInMemConverter: EcssTcInMemConverter> {
}
impl<TcInMemConverter: EcssTcInMemConverter> PusService17TestHandler<TcInMemConverter> {
pub fn new(
tc_receiver: Box<dyn EcssTcReceiver>,
tm_sender: Box<dyn EcssTmSender>,
tm_apid: u16,
verification_handler: VerificationReporterWithSender,
tc_in_mem_converter: TcInMemConverter,
) -> Self {
Self {
psb: PusServiceHandler::new(
tc_receiver,
tm_sender,
tm_apid,
verification_handler,
tc_in_mem_converter,
),
}
}
pub fn new_from_service_handler(service_handler: PusServiceHandler<TcInMemConverter>) -> Self {
pub fn new(service_handler: PusServiceHandler<TcInMemConverter>) -> Self {
Self {
psb: service_handler,
}
@ -137,7 +119,7 @@ mod tests {
impl Pus17HandlerWithStoreTester {
pub fn new() -> Self {
let (common, srv_handler) = PusServiceHandlerWithStoreCommon::new();
let pus_17_handler = PusService17TestHandler::new_from_service_handler(srv_handler);
let pus_17_handler = PusService17TestHandler::new(srv_handler);
Self {
common,
handler: pus_17_handler,
@ -171,7 +153,7 @@ mod tests {
impl Pus17HandlerWithVecTester {
pub fn new() -> Self {
let (common, srv_handler) = PusServiceHandlerWithVecCommon::new();
let pus_17_handler = PusService17TestHandler::new_from_service_handler(srv_handler);
let pus_17_handler = PusService17TestHandler::new(srv_handler);
Self {
common,
handler: pus_17_handler,