mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Enhance logging and fix regression in TODO.txt
- Updated the logging format in TODO.txt to provide clearer information about file operations and potential issues, including warnings about lossy string conversions. - Added a note to address a regression in logging behavior that may affect users relying on specific property formats. - Refactored the `flatten_tree` function in `git.rs` to improve parameter clarity by renaming the repository argument. - Updated the `mcp.rs` test to utilize a more concise method for checking integer types in the timeout configuration. - Introduced a new method in `TestServeSession` to fetch git metadata, improving the test suite's ability to validate git-related functionality. These changes aim to improve logging clarity, address regressions, and enhance test coverage for git metadata handling.
This commit is contained in:
parent
059abd1245
commit
f24e991aca
5 changed files with 64 additions and 43 deletions
|
|
@ -212,7 +212,7 @@ fn collect_tree_index_changes(
|
|||
}
|
||||
|
||||
fn flatten_tree(
|
||||
repo: &gix::Repository,
|
||||
_repo: &gix::Repository,
|
||||
tree: &gix::Tree<'_>,
|
||||
prefix: &str,
|
||||
out: &mut HashMap<String, gix::ObjectId>,
|
||||
|
|
|
|||
|
|
@ -2393,7 +2393,7 @@ mod tests {
|
|||
let has_integer = timeout["type"] == "integer"
|
||||
|| timeout["type"]
|
||||
.as_array()
|
||||
.map_or(false, |arr| arr.iter().any(|v| v == "integer"));
|
||||
.is_some_and(|arr| arr.iter().any(|v| v == "integer"));
|
||||
assert!(has_integer, "timeout should accept integer: {timeout}");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue