refactor(core): flatten test modules

This commit is contained in:
Yujong Lee 2026-09-09 15:35:59 -07:00
parent 327f940a0a
commit 40e7b024b7
27 changed files with 18 additions and 13 deletions

View file

@ -4,6 +4,11 @@ version = "0.1.0"
edition.workspace = true
license.workspace = true
repository.workspace = true
autotests = false
[[test]]
name = "workspace_crate_allowlist"
path = "tests/workspace_crate_allowlist.rs"
[dependencies]
base64.workspace = true

View file

@ -18,5 +18,5 @@ pub async fn audio_transcription(request: AudioTranscriptionRequest<'_>) -> Resu
}
#[cfg(all(test, feature = "bedrock-auth"))]
#[path = "../../tests/audio_transcription/tests.rs"]
#[path = "../../tests/audio_transcription.rs"]
mod tests;

View file

@ -58,5 +58,5 @@ pub fn chat_completions_decline_reason(
}
#[cfg(test)]
#[path = "../../tests/chat_completions/tests.rs"]
#[path = "../../tests/chat_completions.rs"]
mod tests;

View file

@ -28,5 +28,5 @@ pub async fn messages_stream(request: MessagesRequest<'_>) -> Result<reqwest::Re
}
#[cfg(test)]
#[path = "../../tests/messages/tests.rs"]
#[path = "../../tests/messages.rs"]
mod tests;

View file

@ -20,5 +20,5 @@ pub async fn perform_ocr(request: OcrRequest) -> Result<OcrResponseData, crate::
}
#[cfg(test)]
#[path = "../../tests/ocr/tests.rs"]
#[path = "../../tests/ocr.rs"]
pub(crate) mod tests;

View file

@ -131,5 +131,5 @@ pub(crate) fn prepare_ocr_call<C: OcrProviderConfig>(
}
#[cfg(test)]
#[path = "../../tests/ocr/prepare.rs"]
#[path = "../../tests/ocr_prepare.rs"]
mod tests;

View file

@ -214,5 +214,5 @@ impl ChatCompletionsProviderConfig for AnthropicChatCompletionsConfig {
}
#[cfg(test)]
#[path = "../../../../tests/providers/anthropic/chat_completions/tests.rs"]
#[path = "../../../../tests/anthropic_chat_completions.rs"]
mod tests;

View file

@ -1,6 +1,6 @@
pub(crate) mod polling;
#[cfg(test)]
#[path = "../../../../../tests/providers/azure_ai/ocr/document_intelligence/tests.rs"]
#[path = "../../../../../tests/azure_document_intelligence_ocr.rs"]
mod tests;
pub mod transformation;
pub mod types;

View file

@ -1,5 +1,5 @@
pub mod document_intelligence;
#[cfg(test)]
#[path = "../../../../tests/providers/azure_ai/ocr/tests.rs"]
#[path = "../../../../tests/azure_ai_ocr.rs"]
mod tests;
pub mod transformation;

View file

@ -299,5 +299,5 @@ impl ChatCompletionsProviderConfig for BedrockChatCompletionsConfig {
}
#[cfg(test)]
#[path = "../../../../tests/providers/bedrock/chat_completions/tests.rs"]
#[path = "../../../../tests/bedrock_chat_completions.rs"]
mod tests;

View file

@ -1,5 +1,5 @@
#[cfg(test)]
#[path = "../../../../tests/providers/mistral/ocr/tests.rs"]
#[path = "../../../../tests/mistral_ocr.rs"]
mod tests;
pub mod transformation;
pub mod types;

View file

@ -1,5 +1,5 @@
#[cfg(test)]
#[path = "../../../../tests/providers/reducto/ocr/tests.rs"]
#[path = "../../../../tests/reducto_ocr.rs"]
mod tests;
pub mod transformation;
pub mod types;

View file

@ -1,5 +1,5 @@
#[cfg(test)]
#[path = "../../../../../tests/providers/vertex_ai/ocr/deepseek/tests.rs"]
#[path = "../../../../../tests/vertex_ai_deepseek_ocr.rs"]
mod tests;
pub mod transformation;
pub mod types;

View file

@ -1,5 +1,5 @@
pub mod deepseek;
#[cfg(test)]
#[path = "../../../../tests/providers/vertex_ai/ocr/tests.rs"]
#[path = "../../../../tests/vertex_ai_ocr.rs"]
mod tests;
pub mod transformation;