Skip to content

docs: document target inference algorithm and best practices - #57

Merged
jflowers merged 1 commit into
unbound-force:mainfrom
jflowers:target-inference-docs
Mar 15, 2026
Merged

jflowers merged 1 commit into
unbound-force:mainfrom
jflowers:target-inference-docs

Conversation

@jflowers

Copy link
Copy Markdown
Collaborator

Summary

Document how gaze determines which function a test exercises, addressing the guidance gap reported in issue #45.

Added to README

  • How Target Inference Works: Explains SSA call graph analysis
  • Common warning causes: Setup helpers, multi-function integration tests
  • What does NOT affect detection: t.Helper(), naming conventions, assertion libraries
  • Best practices: Naming, t.Run sub-tests, --target flag

Also updated

Known Limitations: mapping accuracy updated from ~74% to ~85% (reflects PR #56 helper bridge improvement).

Closes #45

…nbound-force#45)

Add 'How Target Inference Works' section to README explaining:
- How gaze determines which function a test exercises (SSA call graph)
- Common causes of 'multiple target functions' warnings
- What does NOT affect detection (t.Helper, naming conventions)
- Best practices for clear target inference

Update Known Limitations: mapping accuracy ~74% -> ~85%.

Closes unbound-force#45
@jflowers jflowers added this to the v1.4.0 milestone Mar 15, 2026
@jflowers
jflowers merged commit 48e069f into unbound-force:main Mar 15, 2026
5 checks passed
@jflowers
jflowers deleted the target-inference-docs branch November 15, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Guidance needed for 'multiple target functions detected' warnings

1 participant