• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

doitsu2014 / my-cms / 14187034714

01 Apr 2025 04:12AM UTC coverage: 59.597% (+20.5%) from 39.058%
14187034714

push

github

web-flow
Feature/support multi language (#19)

* Enhance entity structure: add category and post translations, update migration dependencies, and improve README guidelines

* Add support for category translations: update create and modify handlers, requests, and tests

add TODO

* Add category translations support: update create, modify, and read handlers, and adjust request structures

* Refactor category translation requests: remove slug field and update handlers to set category ID for translations

* Add support for post translations: update create and modify requests, handlers, and models

* Update CI configuration and scripts for improved coverage reporting and toolchain management

* Update coverage configuration and scripts for improved reporting and toolchain management

* Update CI and coverage configurations for improved reporting and ignore patterns

* Update CI configuration and coverage scripts for improved reporting and cleanup

* Remove unused coverage step from CI configuration

* Update CI configuration to use fixed lcov report paths for coverage uploads

197 of 396 new or added lines in 19 files covered. (49.75%)

71 existing lines in 11 files now uncovered.

975 of 1636 relevant lines covered (59.6%)

26.2 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/application_core/src/commands/media/mod.rs
1
use s3::{creds::Credentials, Bucket, Region};
2
use serde::{Deserialize, Serialize};
3

4
use crate::common::app_error::AppError;
5

6
pub mod create;
7
pub mod delete;
8
pub mod read;
9

10
#[derive(Clone, Debug)]
11
pub struct MediaConfig {
12
    pub s3_media_storage: S3MediaStorage,
13
    pub media_imgproxy_server: String,
14
}
15

16
#[derive(Clone, Debug)]
17
pub struct S3MediaStorage {
18
    pub s3_region: Region,
19
    pub s3_credentials: Credentials,
20
    pub s3_bucket_name: String,
21
}
22

23
impl S3MediaStorage {
24
    pub fn spawn_bucket(&self) -> Result<Box<Bucket>, AppError> {
×
25
        Bucket::new(
×
26
            &self.s3_bucket_name,
×
27
            self.s3_region.to_owned(),
×
28
            self.s3_credentials.to_owned(),
×
UNCOV
29
        )
×
30
        .map_err(|e| e.into())
×
31
    }
×
32
}
33

34
#[derive(Debug, Clone, Serialize, Deserialize)]
35
pub struct MediaModel {
36
    pub server: String,
37
    pub path: String,
38
    pub imgproxy_url: String,
39
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc