Implement deferred core utility parity APIs/tests and refresh tracking artifacts

This commit is contained in:
Joseph Doherty
2026-02-27 10:27:05 -05:00
parent c0aaae9236
commit b94a67be6e
17 changed files with 842 additions and 9 deletions

View File

@@ -58,6 +58,28 @@ type TestFunc struct {
GoLineCount int
// FeatureName links this test to a feature by naming convention
FeatureName string
// Calls holds raw function/method calls extracted from the test body AST
Calls []CallInfo
// LinkedFeatures holds indices into the parent module's Features slice
LinkedFeatures []int
// BestFeatureIdx is the primary feature match index (-1 = none)
BestFeatureIdx int
}
// CallInfo represents a function or method call extracted from a test body.
type CallInfo struct {
FuncName string // direct call name: "newMemStore"
RecvOrPkg string // selector receiver/pkg: "ms", "fmt", "t"
MethodName string // selector method: "StoreMsg", "Fatalf"
IsSelector bool // true for X.Y() form
}
// callKey returns a deduplication key for this call.
func (c CallInfo) callKey() string {
if c.IsSelector {
return c.RecvOrPkg + "." + c.MethodName
}
return c.FuncName
}
// Dependency represents a call relationship between two items.