test: Add comprehensive tests for phase2 log_file_symbols function#163
Merged
jade-codes merged 4 commits intomainfrom Jan 6, 2026
Merged
test: Add comprehensive tests for phase2 log_file_symbols function#163jade-codes merged 4 commits intomainfrom
jade-codes merged 4 commits intomainfrom
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>
Copilot
AI
changed the title
[WIP] Add comprehensive tests for phase2-log-file-symbols module
test: Add comprehensive tests for phase2 log_file_symbols 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 28 unit tests for the
log_file_symbolsfunction in phase2, which logs file symbol extraction statistics.Test Coverage
usize::MAX, mismatched symbol/LSP countsImplementation
Tests follow the existing pattern of testing private functions within the same module's
#[cfg(test)]section. All tests verify the function handles various inputs without panicking, as the actual log output is handled by the tracing infrastructure.Example test structure:
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 --test-threads=4 --emit=dep-info,metadata -C opt-level=1 -C embed-bitcode=no -C codegen-units=256 -C debuginfo=2 -C 0ffa�� 0ffa122571f630f2--error-format=json 0ffa122571f630f2--json=diagnostic-rendered-ansi,artifacts,future-incompat 0ffa122571f630f2--diagnostic-width=120 0ffa122571f630f2/home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/rustc 0ffa122571f630f2--crate-name 0ffa122571f630f2lazy_static 0ffa122571f630f2--edition=2015(packet block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 90nvrsv28esw6vk5e06hnfj.1x641fd.rcgu.o at335mhulg9dy69l0u2gw47.1x641fd.rcgu.o 7r951203no5r0xytjikyqkh.1x641fd.rcgu.o gkm9lrbusoktyvclutwttfd.1x641fd.rcgu.o 4ahi9hc7tymn5jawenbl0fi.1x641fd.rcgu.o pbqfs4k41twjrhrvym6ekoj.1x641fd.rcgu.o vtqawk4fmejqml1yl4svcdx.1x641fd.rcgu.o 9kvbu65dr26hgw9rjjnk1o2.1x641fd.rcgu.o o18mnbs0u6zah9tnrj8gwwn.1x641fd.rcgu.o 8qyf7kbibyigxza0200uwgf.1x641fd.rcgu.o luyewkzzkq4yeeyl6kpzhoa.1x641fd.rcgu.o t72a�� rehs49r9iutcgrwjmpjfmvg.1x641fd.rcgu.o f9596eoab8tmm61z7l9of2e.1x641fd.rcgu.o s/tests_main-5c7abb0805765617.2xem52egqoeb9u18ct8iiajis.1gbdoj6.rcgu.o s/tests_main-5c7git s/tests_main-5c7checkout s/tests_main-5c7copilot/add-tests-phase2-log-file-symbols s/tests_main-5c7abb0805765617.3xemss850iwaeybf902a4zmnr.1gbdoj6.rcgu.o(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 --test-threads=4 --emit=dep-info,metadata -C opt-level=1 -C embed-bitcode=no -C codegen-units=256 -C debuginfo=2 -C 0ffa�� 0ffa122571f630f2--error-format=json 0ffa122571f630f2--json=diagnostic-rendered-ansi,artifacts,future-incompat 0ffa122571f630f2--diagnostic-width=120 0ffa122571f630f2/home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/rustc 0ffa122571f630f2--crate-name 0ffa122571f630f2lazy_static 0ffa122571f630f2--edition=2015(dns block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 90nvrsv28esw6vk5e06hnfj.1x641fd.rcgu.o at335mhulg9dy69l0u2gw47.1x641fd.rcgu.o 7r951203no5r0xytjikyqkh.1x641fd.rcgu.o gkm9lrbusoktyvclutwttfd.1x641fd.rcgu.o 4ahi9hc7tymn5jawenbl0fi.1x641fd.rcgu.o pbqfs4k41twjrhrvym6ekoj.1x641fd.rcgu.o vtqawk4fmejqml1yl4svcdx.1x641fd.rcgu.o 9kvbu65dr26hgw9rjjnk1o2.1x641fd.rcgu.o o18mnbs0u6zah9tnrj8gwwn.1x641fd.rcgu.o 8qyf7kbibyigxza0200uwgf.1x641fd.rcgu.o luyewkzzkq4yeeyl6kpzhoa.1x641fd.rcgu.o t72a�� rehs49r9iutcgrwjmpjfmvg.1x641fd.rcgu.o f9596eoab8tmm61z7l9of2e.1x641fd.rcgu.o s/tests_main-5c7abb0805765617.2xem52egqoeb9u18ct8iiajis.1gbdoj6.rcgu.o s/tests_main-5c7git s/tests_main-5c7checkout s/tests_main-5c7copilot/add-tests-phase2-log-file-symbols s/tests_main-5c7abb0805765617.3xemss850iwaeybf902a4zmnr.1gbdoj6.rcgu.o(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 --test-threads=4 --emit=dep-info,metadata -C opt-level=1 -C embed-bitcode=no -C codegen-units=256 -C debuginfo=2 -C 0ffa�� 0ffa122571f630f2--error-format=json 0ffa122571f630f2--json=diagnostic-rendered-ansi,artifacts,future-incompat 0ffa122571f630f2--diagnostic-width=120 0ffa122571f630f2/home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/rustc 0ffa122571f630f2--crate-name 0ffa122571f630f2lazy_static 0ffa122571f630f2--edition=2015(dns block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 90nvrsv28esw6vk5e06hnfj.1x641fd.rcgu.o at335mhulg9dy69l0u2gw47.1x641fd.rcgu.o 7r951203no5r0xytjikyqkh.1x641fd.rcgu.o gkm9lrbusoktyvclutwttfd.1x641fd.rcgu.o 4ahi9hc7tymn5jawenbl0fi.1x641fd.rcgu.o pbqfs4k41twjrhrvym6ekoj.1x641fd.rcgu.o vtqawk4fmejqml1yl4svcdx.1x641fd.rcgu.o 9kvbu65dr26hgw9rjjnk1o2.1x641fd.rcgu.o o18mnbs0u6zah9tnrj8gwwn.1x641fd.rcgu.o 8qyf7kbibyigxza0200uwgf.1x641fd.rcgu.o luyewkzzkq4yeeyl6kpzhoa.1x641fd.rcgu.o t72a�� rehs49r9iutcgrwjmpjfmvg.1x641fd.rcgu.o f9596eoab8tmm61z7l9of2e.1x641fd.rcgu.o s/tests_main-5c7abb0805765617.2xem52egqoeb9u18ct8iiajis.1gbdoj6.rcgu.o s/tests_main-5c7git s/tests_main-5c7checkout s/tests_main-5c7copilot/add-tests-phase2-log-file-symbols s/tests_main-5c7abb0805765617.3xemss850iwaeybf902a4zmnr.1gbdoj6.rcgu.o(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 --test-threads=4 --emit=dep-info,metadata -C opt-level=1 -C embed-bitcode=no -C codegen-units=256 -C debuginfo=2 -C 0ffa�� 0ffa122571f630f2--error-format=json 0ffa122571f630f2--json=diagnostic-rendered-ansi,artifacts,future-incompat 0ffa122571f630f2--diagnostic-width=120 0ffa122571f630f2/home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/rustc 0ffa122571f630f2--crate-name 0ffa122571f630f2lazy_static 0ffa122571f630f2--edition=2015(dns block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 90nvrsv28esw6vk5e06hnfj.1x641fd.rcgu.o at335mhulg9dy69l0u2gw47.1x641fd.rcgu.o 7r951203no5r0xytjikyqkh.1x641fd.rcgu.o gkm9lrbusoktyvclutwttfd.1x641fd.rcgu.o 4ahi9hc7tymn5jawenbl0fi.1x641fd.rcgu.o pbqfs4k41twjrhrvym6ekoj.1x641fd.rcgu.o vtqawk4fmejqml1yl4svcdx.1x641fd.rcgu.o 9kvbu65dr26hgw9rjjnk1o2.1x641fd.rcgu.o o18mnbs0u6zah9tnrj8gwwn.1x641fd.rcgu.o 8qyf7kbibyigxza0200uwgf.1x641fd.rcgu.o luyewkzzkq4yeeyl6kpzhoa.1x641fd.rcgu.o t72a�� rehs49r9iutcgrwjmpjfmvg.1x641fd.rcgu.o f9596eoab8tmm61z7l9of2e.1x641fd.rcgu.o s/tests_main-5c7abb0805765617.2xem52egqoeb9u18ct8iiajis.1gbdoj6.rcgu.o s/tests_main-5c7git s/tests_main-5c7checkout s/tests_main-5c7copilot/add-tests-phase2-log-file-symbols s/tests_main-5c7abb0805765617.3xemss850iwaeybf902a4zmnr.1gbdoj6.rcgu.o(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 --test-threads=4 --emit=dep-info,metadata -C opt-level=1 -C embed-bitcode=no -C codegen-units=256 -C debuginfo=2 -C 0ffa�� 0ffa122571f630f2--error-format=json 0ffa122571f630f2--json=diagnostic-rendered-ansi,artifacts,future-incompat 0ffa122571f630f2--diagnostic-width=120 0ffa122571f630f2/home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/rustc 0ffa122571f630f2--crate-name 0ffa122571f630f2lazy_static 0ffa122571f630f2--edition=2015(dns block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 90nvrsv28esw6vk5e06hnfj.1x641fd.rcgu.o at335mhulg9dy69l0u2gw47.1x641fd.rcgu.o 7r951203no5r0xytjikyqkh.1x641fd.rcgu.o gkm9lrbusoktyvclutwttfd.1x641fd.rcgu.o 4ahi9hc7tymn5jawenbl0fi.1x641fd.rcgu.o pbqfs4k41twjrhrvym6ekoj.1x641fd.rcgu.o vtqawk4fmejqml1yl4svcdx.1x641fd.rcgu.o 9kvbu65dr26hgw9rjjnk1o2.1x641fd.rcgu.o o18mnbs0u6zah9tnrj8gwwn.1x641fd.rcgu.o 8qyf7kbibyigxza0200uwgf.1x641fd.rcgu.o luyewkzzkq4yeeyl6kpzhoa.1x641fd.rcgu.o t72a�� rehs49r9iutcgrwjmpjfmvg.1x641fd.rcgu.o f9596eoab8tmm61z7l9of2e.1x641fd.rcgu.o s/tests_main-5c7abb0805765617.2xem52egqoeb9u18ct8iiajis.1gbdoj6.rcgu.o s/tests_main-5c7git s/tests_main-5c7checkout s/tests_main-5c7copilot/add-tests-phase2-log-file-symbols s/tests_main-5c7abb0805765617.3xemss850iwaeybf902a4zmnr.1gbdoj6.rcgu.o(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 --test-threads=4 --emit=dep-info,metadata -C opt-level=1 -C embed-bitcode=no -C codegen-units=256 -C debuginfo=2 -C 0ffa�� 0ffa122571f630f2--error-format=json 0ffa122571f630f2--json=diagnostic-rendered-ansi,artifacts,future-incompat 0ffa122571f630f2--diagnostic-width=120 0ffa122571f630f2/home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/rustc 0ffa122571f630f2--crate-name 0ffa122571f630f2lazy_static 0ffa122571f630f2--edition=2015(dns block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 90nvrsv28esw6vk5e06hnfj.1x641fd.rcgu.o at335mhulg9dy69l0u2gw47.1x641fd.rcgu.o 7r951203no5r0xytjikyqkh.1x641fd.rcgu.o gkm9lrbusoktyvclutwttfd.1x641fd.rcgu.o 4ahi9hc7tymn5jawenbl0fi.1x641fd.rcgu.o pbqfs4k41twjrhrvym6ekoj.1x641fd.rcgu.o vtqawk4fmejqml1yl4svcdx.1x641fd.rcgu.o 9kvbu65dr26hgw9rjjnk1o2.1x641fd.rcgu.o o18mnbs0u6zah9tnrj8gwwn.1x641fd.rcgu.o 8qyf7kbibyigxza0200uwgf.1x641fd.rcgu.o luyewkzzkq4yeeyl6kpzhoa.1x641fd.rcgu.o t72a�� rehs49r9iutcgrwjmpjfmvg.1x641fd.rcgu.o f9596eoab8tmm61z7l9of2e.1x641fd.rcgu.o s/tests_main-5c7abb0805765617.2xem52egqoeb9u18ct8iiajis.1gbdoj6.rcgu.o s/tests_main-5c7git s/tests_main-5c7checkout s/tests_main-5c7copilot/add-tests-phase2-log-file-symbols s/tests_main-5c7abb0805765617.3xemss850iwaeybf902a4zmnr.1gbdoj6.rcgu.o(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 --test-threads=4 --emit=dep-info,metadata -C opt-level=1 -C embed-bitcode=no -C codegen-units=256 -C debuginfo=2 -C 0ffa�� 0ffa122571f630f2--error-format=json 0ffa122571f630f2--json=diagnostic-rendered-ansi,artifacts,future-incompat 0ffa122571f630f2--diagnostic-width=120 0ffa122571f630f2/home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/rustc 0ffa122571f630f2--crate-name 0ffa122571f630f2lazy_static 0ffa122571f630f2--edition=2015(dns block)/home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 /home/REDACTED/work/mother/mother/target/debug/deps/mother_cli-d349731c4bc5c110 90nvrsv28esw6vk5e06hnfj.1x641fd.rcgu.o at335mhulg9dy69l0u2gw47.1x641fd.rcgu.o 7r951203no5r0xytjikyqkh.1x641fd.rcgu.o gkm9lrbusoktyvclutwttfd.1x641fd.rcgu.o 4ahi9hc7tymn5jawenbl0fi.1x641fd.rcgu.o pbqfs4k41twjrhrvym6ekoj.1x641fd.rcgu.o vtqawk4fmejqml1yl4svcdx.1x641fd.rcgu.o 9kvbu65dr26hgw9rjjnk1o2.1x641fd.rcgu.o o18mnbs0u6zah9tnrj8gwwn.1x641fd.rcgu.o 8qyf7kbibyigxza0200uwgf.1x641fd.rcgu.o luyewkzzkq4yeeyl6kpzhoa.1x641fd.rcgu.o t72a�� rehs49r9iutcgrwjmpjfmvg.1x641fd.rcgu.o f9596eoab8tmm61z7l9of2e.1x641fd.rcgu.o s/tests_main-5c7abb0805765617.2xem52egqoeb9u18ct8iiajis.1gbdoj6.rcgu.o s/tests_main-5c7git s/tests_main-5c7checkout s/tests_main-5c7copilot/add-tests-phase2-log-file-symbols s/tests_main-5c7abb0805765617.3xemss850iwaeybf902a4zmnr.1gbdoj6.rcgu.o(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.