shift_preflight/transformer/
document.rs1use crate::policy::Action;
10use anyhow::Result;
11
12pub fn transform_document(_data: &[u8], _action: &Action) -> Result<Vec<u8>> {
16 anyhow::bail!("document transformation is not yet supported (planned for v2)")
17}
18
19#[cfg(test)]
20mod tests {
21 use super::*;
22
23 #[test]
24 fn test_document_transform_not_supported() {
25 let result = transform_document(b"fake doc", &Action::Pass);
26 assert!(result.is_err());
27 assert!(result
28 .unwrap_err()
29 .to_string()
30 .contains("not yet supported"));
31 }
32}