feat: modelos y CRUD para unit_tests y e2e_tests
UnitTest en registry con Insert, GetByFunction, Search FTS5, Purge. E2ETest en fn_operations con Insert, Get, List, UpdateResult, Delete. Ambos con scan helpers y serialización JSON.
This commit is contained in:
@@ -180,6 +180,18 @@ type Proposal struct {
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
|
||||
// UnitTest represents an individual test case extracted from a test file.
|
||||
type UnitTest struct {
|
||||
ID string `json:"id"`
|
||||
FunctionID string `json:"function_id"`
|
||||
Name string `json:"name"`
|
||||
Code string `json:"code"`
|
||||
FilePath string `json:"file_path"`
|
||||
Lang string `json:"lang"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
|
||||
// GenerateID builds the canonical ID: {name}_{lang}_{domain}
|
||||
func GenerateID(name, lang, domain string) string {
|
||||
return name + "_" + lang + "_" + domain
|
||||
|
||||
Reference in New Issue
Block a user