MCPcopy Index your code
hub / github.com/clearloop/leetcode-cli / run_code

Method run_code

src/plugins/leetcode.rs:242–255  ·  view source on GitHub ↗

Send code to judge

(self, j: Json, url: String, refer: String)

Source from the content-addressed store, hash-verified

240
241 /// Send code to judge
242 pub async fn run_code(self, j: Json, url: String, refer: String) -> Result<Response> {
243 info!("Sending code to judge...");
244 Req {
245 default_headers: self.default_headers,
246 refer: Some(refer),
247 info: false,
248 json: Some(j),
249 mode: Mode::Post,
250 name: "run_code",
251 url,
252 }
253 .send(&self.client)
254 .await
255 }
256
257 /// Get the result of submission / testing
258 pub async fn verify_result(self, id: String) -> Result<Response> {

Callers 1

exec_problemMethod · 0.80

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected