mirror of
https://github.com/openai/codex.git
synced 2026-10-23 18:08:45 +00:00
## What changed Move inline crate tests into `lib_tests.rs` and nest related test suites under each crate's `tests` module. Update imports, subprocess test filters, logging targets, and snapshot names to match the new module paths. Keep test helpers accessible where needed and preserve the schema writer's exact test name used by release tooling. GitOrigin-RevId: de55eaae66dce4941abb33dd0b2f170093daa8f9
73 lines
2.4 KiB
Rust
73 lines
2.4 KiB
Rust
mod experimental_api;
|
|
mod precomputed_exports;
|
|
mod protocol;
|
|
pub mod rpc;
|
|
|
|
pub use experimental_api::*;
|
|
pub use precomputed_exports::GenerateTsOptions;
|
|
pub use precomputed_exports::generate_internal_json_schema;
|
|
pub use precomputed_exports::generate_json;
|
|
pub use precomputed_exports::generate_json_with_experimental;
|
|
pub use precomputed_exports::generate_ts;
|
|
pub use precomputed_exports::generate_ts_with_options;
|
|
pub use precomputed_exports::generate_types;
|
|
pub use protocol::common::*;
|
|
pub use protocol::event_mapping::*;
|
|
pub use protocol::item_builders::*;
|
|
pub use protocol::thread_history::*;
|
|
pub use protocol::thread_history_projection::*;
|
|
pub use protocol::v1::ApplyPatchApprovalParams;
|
|
pub use protocol::v1::ApplyPatchApprovalResponse;
|
|
pub use protocol::v1::ClientInfo;
|
|
pub use protocol::v1::ConversationGitInfo;
|
|
pub use protocol::v1::ConversationSummary;
|
|
pub use protocol::v1::ExecCommandApprovalParams;
|
|
pub use protocol::v1::ExecCommandApprovalResponse;
|
|
pub use protocol::v1::GetAuthStatusParams;
|
|
pub use protocol::v1::GetAuthStatusResponse;
|
|
pub use protocol::v1::GetConversationSummaryParams;
|
|
pub use protocol::v1::GetConversationSummaryResponse;
|
|
pub use protocol::v1::GitDiffToRemoteParams;
|
|
pub use protocol::v1::GitDiffToRemoteResponse;
|
|
pub use protocol::v1::GitSha;
|
|
pub use protocol::v1::InitializeCapabilities;
|
|
pub use protocol::v1::InitializeParams;
|
|
pub use protocol::v1::InitializeResponse;
|
|
pub use protocol::v1::InterruptConversationResponse;
|
|
pub use protocol::v1::LoginApiKeyParams;
|
|
pub use protocol::v1::SandboxSettings;
|
|
pub use protocol::v1::Tools;
|
|
pub use protocol::v1::UserSavedConfig;
|
|
pub use protocol::v2::*;
|
|
pub use rpc::*;
|
|
#[cfg(test)]
|
|
pub use schema_fixtures::SchemaFixtureOptions;
|
|
#[cfg(test)]
|
|
pub use schema_fixtures::read_schema_fixture_subtree;
|
|
#[cfg(test)]
|
|
pub use schema_fixtures::read_schema_fixture_tree;
|
|
#[cfg(test)]
|
|
pub use schema_fixtures::write_schema_fixtures;
|
|
#[cfg(test)]
|
|
pub use schema_fixtures::write_schema_fixtures_with_options;
|
|
|
|
#[cfg(not(test))]
|
|
pub(crate) use codex_app_server_protocol_noop_macros::JsonSchema;
|
|
#[cfg(not(test))]
|
|
pub(crate) use codex_app_server_protocol_noop_macros::TS;
|
|
#[cfg(test)]
|
|
pub(crate) use schemars::JsonSchema;
|
|
#[cfg(test)]
|
|
pub(crate) use ts_rs::TS;
|
|
|
|
#[cfg(test)]
|
|
#[path = "lib_tests.rs"]
|
|
mod tests;
|
|
// Release tooling selects this module's schema writer by its exact test name.
|
|
#[cfg(test)]
|
|
mod schema_fixtures_tests;
|
|
#[cfg(test)]
|
|
use tests::export;
|
|
#[cfg(test)]
|
|
use tests::schema_fixtures;
|