test: move small adapter tests to tests/

event-publisher, export, rss, media-server, object-storage, nats(config).
Kept inline (private fn, no public path): nats src/subject.rs
tests::{review_logged_subject,review_updated_subject,movie_discovered_subject,
consumer_subject_filter_appends_wildcard} - event_to_subject/consumer_subject_filter private.
object-storage build_local_store tests rewritten via StorageConfig::from_config.
This commit is contained in:
2026-10-25 22:47:54 +01:00
parent fdf4df38af
commit 74674b157c
16 changed files with 35 additions and 48 deletions

View File

@@ -107,7 +107,3 @@ fn entry_to_json(e: &DiaryEntry) -> serde_json::Value {
"spoilers": e.review().spoilers(),
})
}
#[cfg(test)]
#[path = "tests/lib.rs"]
mod tests;

View File

@@ -1,4 +1,3 @@
use super::ExportAdapter;
use domain::{
models::{DiaryEntry, ExportFormat, Movie, ReviewEdit},
ports::DiaryExporter,
@@ -7,6 +6,7 @@ use domain::{
},
value_objects::{Comment, ExternalMetadataId, UserId},
};
use export::ExportAdapter;
async fn collect_stream(
stream: futures::stream::BoxStream<'static, Result<bytes::Bytes, domain::errors::DomainError>>,