xline-kv / Xline

A geo-distributed KV store for metadata management
https://xline.cloud
Apache License 2.0
570 stars 73 forks source link

[Bug]: Doc-tests failed in `raw_curp/log.rs` #876

Closed lxl66566 closed 5 days ago

lxl66566 commented 1 week ago

Description about the bug

reproduce: cargo test -p curp --doc

Version

0.6.1 (Default)

Relevant log output

running 1 test
test crates/curp/src/server/raw_curp/log.rs - server::raw_curp::log::Log (line 86) ... FAILED

failures:

---- crates/curp/src/server/raw_curp/log.rs - server::raw_curp::log::Log (line 86) stdout ----
error: unknown start of token: \u{2191}
 --> crates/curp/src/server/raw_curp/log.rs:87:1
  |
3 | ↑
  | ^

error: unknown start of token: `
 --> crates/curp/src/server/raw_curp/log.rs:88:19
  |
4 |                   `first_idx_in_cur_batch`
  |                   ^
  |
help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not
  |
4 |                   'first_idx_in_cur_batch`
  |                   ~

error: unknown start of token: `
 --> crates/curp/src/server/raw_curp/log.rs:88:42
  |
4 |                   `first_idx_in_cur_batch`
  |                                          ^
  |
help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not
  |
4 |                   `first_idx_in_cur_batch'
  |                                          ~

error[E0425]: cannot find value `first_idx_in_cur_batch` in this scope
 --> crates/curp/src/server/raw_curp/log.rs:88:20
  |
4 |                   `first_idx_in_cur_batch`
  |                    ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.

failures:
    crates/curp/src/server/raw_curp/log.rs - server::raw_curp::log::Log (line 86)

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s

error: doctest failed, to rerun pass `-p curp --doc`

Code of Conduct

github-actions[bot] commented 1 week ago

👋 Thanks for opening this issue!

Reply with the following command on its own line to get help or engage: