ctb_formats_dct_el/dct_el.rs
1// SPDX-License-Identifier: AGPL-3.0-or-later
2/*
3This file is part of Collective Toolbox, a database and document workspace and utilities.
4Copyright (C) 2026 Collective Toolbox Developers
5Contact: info@collectivetoolbox.com
6
7This program is free software: you can redistribute it and/or modify it under
8the terms of the GNU Affero General Public License as published by the Free
9Software Foundation, either version 3 of the License, or (at your option) any
10later version.
11
12This program is distributed in the hope that it will be useful, but WITHOUT ANY
13WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
15
16You should have received a copy of the GNU Affero General Public License along
17with this program. If not, see <https://www.gnu.org/licenses/>.
18*/
19
20//! DcText EL implementation.
21
22#[allow(
23 unused_imports,
24 clippy::wildcard_imports,
25 reason = "Standard workspace crate prelude"
26)]
27pub(crate) use ctb_utilities::*;
28
29#[cfg(test)]
30pub(crate) fn get_dct_el_data(key: &str) -> Option<Vec<u8>> {
31 ctb_utilities::load_manifest_fixture(env!("CARGO_MANIFEST_DIR"), key)
32}
33
34#[cfg(test)]
35#[allow(
36 clippy::panic,
37 clippy::expect_used,
38 clippy::unwrap_used,
39 clippy::unwrap_in_result,
40 clippy::panic_in_result_fn,
41 clippy::indexing_slicing,
42 clippy::arithmetic_side_effects,
43 reason = "Standard repository test boilerplate"
44)]
45mod tests {
46 use crate::utilities::{assert_vec_u8_eq, assert_vec_u8_ok_eq};
47 use ctb_formats_utilities::assert_string_ok_eq;
48
49 use super::*;
50}