test: Add comprehensive tests for log_scan_run_info function#159
Draft
test: Add comprehensive tests for log_scan_run_info function#159
Conversation
Co-authored-by: jade-codes <9397730+jade-codes@users.noreply.github.com>
Co-authored-by: jade-codes <9397730+jade-codes@users.noreply.github.com>
Co-authored-by: jade-codes <9397730+jade-codes@users.noreply.github.com>
Co-authored-by: jade-codes <9397730+jade-codes@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add comprehensive tests for scan-log-scan-run-info module
test: Add comprehensive tests for log_scan_run_info function
Jan 6, 2026
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.
Adds 42 test cases for
log_scan_run_infoto verify logging behavior across various input combinations.Test Coverage
Implementation
crates/mother-cli/src/commands/scan/tests/tests_log_scan_run_info.rscreate_scan_run()for integration testingVALID_FULL_COMMIT_SHAfor reusable 40-char hex SHAExample test pattern:
All tests verify the function doesn't panic with various inputs while maintaining existing test patterns.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
192.168.1.100/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --emit=dep-info,metadata,link -C opt-level=1 -C embed-bitcode=no -C codegen-units=256 -C debuginfo=2 --warn=rust_2018_idioms --warn=clippy::zero_sized_map_values out/�� out/build/43a19b30e9e69d8f-commit_graph.o out/build/43a19b30e9e69d8f-commit_list.o rgo/bin/as e tp.o pointer cc(packet block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --test-threads=4 --emit=dep-info,metadata -C opt-level=1 -C embed-bitcode=no .2.13/src/lib.rs codegen-units=256 -C debuginfo=2 -C targ�� ld/libgit2-sys-655f2dd85dfd3719/-g ld/libgit2-sys-655f2dd85dfd3719/-gdwarf-4 bin/cargo-clippy target/debug/dep/home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/rustc target/debug/dep--crate-name(packet block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --test-threads=4 pointer cc -O1 in.so /lto-wrapper cc it2(packet block)invalid-host/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --emit=dep-info,metadata,link -C opt-level=1 -C embed-bitcode=no -C codegen-units=256 -C debuginfo=2 --warn=rust_2018_idioms --warn=clippy::zero_sized_map_values out/�� out/build/43a19b30e9e69d8f-commit_graph.o out/build/43a19b30e9e69d8f-commit_list.o rgo/bin/as e tp.o pointer cc(dns block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --test-threads=4 --emit=dep-info,metadata -C opt-level=1 -C embed-bitcode=no .2.13/src/lib.rs codegen-units=256 -C debuginfo=2 -C targ�� ld/libgit2-sys-655f2dd85dfd3719/-g ld/libgit2-sys-655f2dd85dfd3719/-gdwarf-4 bin/cargo-clippy target/debug/dep/home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/rustc target/debug/dep--crate-name(dns block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --test-threads=4 pointer cc -O1 in.so /lto-wrapper cc it2(dns block)invalid-uri/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --emit=dep-info,metadata,link -C opt-level=1 -C embed-bitcode=no -C codegen-units=256 -C debuginfo=2 --warn=rust_2018_idioms --warn=clippy::zero_sized_map_values out/�� out/build/43a19b30e9e69d8f-commit_graph.o out/build/43a19b30e9e69d8f-commit_list.o rgo/bin/as e tp.o pointer cc(dns block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --test-threads=4 --emit=dep-info,metadata -C opt-level=1 -C embed-bitcode=no .2.13/src/lib.rs codegen-units=256 -C debuginfo=2 -C targ�� ld/libgit2-sys-655f2dd85dfd3719/-g ld/libgit2-sys-655f2dd85dfd3719/-gdwarf-4 bin/cargo-clippy target/debug/dep/home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/rustc target/debug/dep--crate-name(dns block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --test-threads=4 pointer cc -O1 in.so /lto-wrapper cc it2(dns block)neo4j.example.com/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --emit=dep-info,metadata,link -C opt-level=1 -C embed-bitcode=no -C codegen-units=256 -C debuginfo=2 --warn=rust_2018_idioms --warn=clippy::zero_sized_map_values out/�� out/build/43a19b30e9e69d8f-commit_graph.o out/build/43a19b30e9e69d8f-commit_list.o rgo/bin/as e tp.o pointer cc(dns block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --test-threads=4 --emit=dep-info,metadata -C opt-level=1 -C embed-bitcode=no .2.13/src/lib.rs codegen-units=256 -C debuginfo=2 -C targ�� ld/libgit2-sys-655f2dd85dfd3719/-g ld/libgit2-sys-655f2dd85dfd3719/-gdwarf-4 bin/cargo-clippy target/debug/dep/home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/rustc target/debug/dep--crate-name(dns block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --test-threads=4 pointer cc -O1 in.so /lto-wrapper cc it2(dns block)neo4j.production.example.com/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --emit=dep-info,metadata,link -C opt-level=1 -C embed-bitcode=no -C codegen-units=256 -C debuginfo=2 --warn=rust_2018_idioms --warn=clippy::zero_sized_map_values out/�� out/build/43a19b30e9e69d8f-commit_graph.o out/build/43a19b30e9e69d8f-commit_list.o rgo/bin/as e tp.o pointer cc(dns block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --test-threads=4 --emit=dep-info,metadata -C opt-level=1 -C embed-bitcode=no .2.13/src/lib.rs codegen-units=256 -C debuginfo=2 -C targ�� ld/libgit2-sys-655f2dd85dfd3719/-g ld/libgit2-sys-655f2dd85dfd3719/-gdwarf-4 bin/cargo-clippy target/debug/dep/home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/rustc target/debug/dep--crate-name(dns block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --test-threads=4 pointer cc -O1 in.so /lto-wrapper cc it2(dns block)nonexistent.host.that.does.not.exist/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --emit=dep-info,metadata,link -C opt-level=1 -C embed-bitcode=no -C codegen-units=256 -C debuginfo=2 --warn=rust_2018_idioms --warn=clippy::zero_sized_map_values out/�� out/build/43a19b30e9e69d8f-commit_graph.o out/build/43a19b30e9e69d8f-commit_list.o rgo/bin/as e tp.o pointer cc(dns block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --test-threads=4 --emit=dep-info,metadata -C opt-level=1 -C embed-bitcode=no .2.13/src/lib.rs codegen-units=256 -C debuginfo=2 -C targ�� ld/libgit2-sys-655f2dd85dfd3719/-g ld/libgit2-sys-655f2dd85dfd3719/-gdwarf-4 bin/cargo-clippy target/debug/dep/home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/rustc target/debug/dep--crate-name(dns block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --test-threads=4 pointer cc -O1 in.so /lto-wrapper cc it2(dns block)not-a-valid-uri/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --emit=dep-info,metadata,link -C opt-level=1 -C embed-bitcode=no -C codegen-units=256 -C debuginfo=2 --warn=rust_2018_idioms --warn=clippy::zero_sized_map_values out/�� out/build/43a19b30e9e69d8f-commit_graph.o out/build/43a19b30e9e69d8f-commit_list.o rgo/bin/as e tp.o pointer cc(dns block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --test-threads=4 --emit=dep-info,metadata -C opt-level=1 -C embed-bitcode=no .2.13/src/lib.rs codegen-units=256 -C debuginfo=2 -C targ�� ld/libgit2-sys-655f2dd85dfd3719/-g ld/libgit2-sys-655f2dd85dfd3719/-gdwarf-4 bin/cargo-clippy target/debug/dep/home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/rustc target/debug/dep--crate-name(dns block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 --test-threads=4 pointer cc -O1 in.so /lto-wrapper cc it2(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.