feat/with-archiver #2

Merged
kjuulh merged 2 commits from feat/with-archiver into main 2024-02-18 01:32:52 +01:00
2 changed files with 7 additions and 2 deletions
Showing only changes of commit 44fbf1f362 - Show all commits

View File

@ -129,7 +129,7 @@ impl Archive {
}
pub struct ArchiveFile {
content: Vec<u8>,
pub content: Vec<u8>,
}
impl From<Vec<u8>> for ArchiveFile {

View File

@ -67,7 +67,7 @@ pub mod models;
#[cfg(test)]
mod test {
use crate::services::archive::MockArchive;
use crate::services::archive::{ArchiveFile, MockArchive};
use crate::services::domain_events::MockDomainEvents;
use crate::services::file_reader::{Files, MockFileReader};
use crate::services::file_store::MockFileStore;
@ -95,6 +95,11 @@ mod test {
.returning(|_| Ok(Files::default()));
let mut archive = MockArchive::default();
archive.expect_create_archive().times(1).returning(|_| {
Ok(ArchiveFile {
content: Vec::new(),
})
});
let releaser_manager = ReleaseManager::new(file_reader, file_store, archive, domain_events);