chore: fix pcc

This commit is contained in:
tmontaigu
2025-04-22 18:23:42 +02:00
committed by Baptiste Roux
parent 5d7f88a91e
commit bb1c9980c1
2 changed files with 12 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ const DIR_TO_IGNORE: [&str; 3] = [
"tests/tfhe-backward-compat-data",
];
const FILES_TO_IGNORE: [&str; 7] = [
const FILES_TO_IGNORE: [&str; 8] = [
// This contains fragments of code that are unrelated to TFHE-rs
"tfhe/docs/tutorials/sha256_bool.md",
// TODO: This contains code that could be executed as a trivium docstring
@@ -23,6 +23,7 @@ const FILES_TO_IGNORE: [&str; 7] = [
"tfhe-ntt/README.md",
"utils/tfhe-lints/README.md",
"CONTRIBUTING.md",
"backends/tfhe-hpu-backend/Readme.md",
];
pub fn check_tfhe_docs_are_tested() -> Result<(), Error> {

View File

@@ -240,3 +240,13 @@ mod test_gpu_doc {
configuration_gpu_acceleration_multi_gpu_device_selection
);
}
#[cfg(feature = "hpu")]
mod test_hpu_doc {
use doc_comment::doctest;
doctest!(
"../docs/configuration/hpu_acceleration/run_on_hpu.md",
configuration_hpu_acceleration_run_on_hpu
);
}