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:
2026-04-05 18:19:10 +02:00
parent 256e038cbe
commit 9660a1c432
4 changed files with 243 additions and 0 deletions
+12
View File
@@ -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