Repository navigation
清理 SQLite 化后无用的旧布局测试实现 - #23
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
解决的问题 / Problem
Fixes #22。SQLite 化后,
book_store.rs仍保留一组仅由旧布局测试调用的转换、同步、章节补丁、删书及digest.json写入实现,容易与当前实现混淆。改动后的行为 / Resulting behavior
digest.json。digest.json的归档文件名移入sqlite.rs;章节插图引用提取仍由 SQLite 生产写入使用。验证 / Validation
cargo test -p readerx --lib book_store,本地环境没有cargo(command not found);PR CI 的cargo check --locked --workspace --all-targets已通过。完整 book_store 单测仍需在具备 Rust 工具链的环境执行。git diff --check通过;核对被移除符号引用、SQLite 迁移和插图写入依赖。数据与兼容性 / Data and compatibility
数据库格式与生产迁移行为不变。旧
digest.json仍在首次 SQLite 导入时归档,失败迁移与未迁移书籍的读取回退继续保留。提交前检查 / Checklist