Download codex-rs/app-server/tests/common/analytics_server.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 466 Bytes
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/app-server/tests/common/analytics_server.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/app-server/tests/common/analytics_server.rs
-
curl -L -o analytics_server.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/app-server/tests/common/analytics_server.rs
466 Bytes
| use anyhow::Result; | |
| use wiremock::Mock; | |
| use wiremock::MockServer; | |
| use wiremock::ResponseTemplate; | |
| use wiremock::matchers::method; | |
| use wiremock::matchers::path; | |
| pub async fn start_analytics_events_server() -> Result<MockServer> { | |
| let server = MockServer::start().await; | |
| Mock::given(method("POST")) | |
| .and(path("/codex/analytics-events/events")) | |
| .respond_with(ResponseTemplate::new(200)) | |
| .mount(&server) | |
| .await; | |
| Ok(server) | |
| } | |