Skip to content

test(traceroute6): Tracer run loop coverage + finalize (#44)#52

Merged
smallnest merged 2 commits into
mainfrom
feat/issue-44-tracer
Jun 30, 2026
Merged

test(traceroute6): Tracer run loop coverage + finalize (#44)#52
smallnest merged 2 commits into
mainfrom
feat/issue-44-tracer

Conversation

@smallnest

Copy link
Copy Markdown
Contributor

Summary

  • Add traceroute6/run_test.go covering the concurrent Tracer main loop against synthetic results: hop RTT stats (loss/min/avg/max, all-timeout, no-probes), addAddr dedup with parallel Hosts/Infos slots in first-seen order, Reached detection, finalize trimming hops beyond the reached hop, and Run returning an empty placeholder Result for non-IPv6 targets.
  • The run loop, finalize, reverse-DNS and enrich.Resolve wiring landed with goscapy 构造与匹配 ICMPv6/UDP/TCP v6 探针 #43 (shared tracer.go); this completes US-005's test matrix.

Test plan

  • go test ./traceroute6/
  • go vet ./traceroute6/, go build ./..., gofmt -l clean.

Closes #44

Add synthetic-result coverage for the concurrent Tracer main loop: hop
RTT stats (loss/min/avg/max), address dedup with parallel Hosts/Infos
slots, Reached detection, finalize trimming beyond the reached hop, and
Run yielding an empty placeholder Result for non-IPv6 targets.

Closes #44
@smallnest
smallnest merged commit 708b03c into main Jun 30, 2026
1 of 2 checks passed
@smallnest
smallnest deleted the feat/issue-44-tracer branch June 30, 2026 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

实现 Tracer 并发主循环 + finalize + enrich 接入

1 participant