Implement deferred core utility parity APIs/tests and refresh tracking artifacts
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user