test(app): OCR 캐시 mock-engine 결정적 검증 — 재실행=엔진 미호출 + byte-identical + 버전 무효화
This commit is contained in:
@@ -28,6 +28,12 @@ impl MockOcrEngine {
|
||||
fail,
|
||||
}
|
||||
}
|
||||
|
||||
/// Number of `recognize` calls so far (cache-hit tests assert this stays
|
||||
/// flat across a re-run).
|
||||
pub fn call_count(&self) -> usize {
|
||||
*self.call_index.lock().unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
impl OcrEngine for MockOcrEngine {
|
||||
|
||||
Reference in New Issue
Block a user