refactor tests

This commit is contained in:
appflowy 2021-12-08 17:33:22 +08:00
parent 4450d4410b
commit 7ac55f29db
30 changed files with 467 additions and 454 deletions

View file

@ -36,6 +36,7 @@ impl OTError {
}
static_ot_error!(duplicate_revision, OTErrorCode::DuplicatedRevision);
static_ot_error!(revision_id_conflict, OTErrorCode::RevisionIDConflict);
}
impl fmt::Display for OTError {
@ -66,6 +67,7 @@ pub enum OTErrorCode {
RedoFail,
SerdeError,
DuplicatedRevision,
RevisionIDConflict,
}
pub struct ErrorBuilder {