docs: convenciones de testing y schema unit_tests/e2e_tests
Nuevo docs/testing.md con convenciones de test por lenguaje (Go, Python, Bash con 3 opciones), tablas unit_tests y e2e_tests, consultas FTS5 de ejemplo. Actualiza functions.md y CLAUDE.md con referencia a unit_tests.
This commit is contained in:
+1
-1
@@ -73,7 +73,7 @@ DataTable<T>(props: { data: T[]; columns: ColumnDef<T>[]; onRowClick?: (row: T)
|
||||
| `kind: pipeline` | `purity` siempre `impure`. `uses_functions` no puede estar vacío. |
|
||||
| `purity: pure` | `returns_optional` siempre `false`. `error_type` vacío. Una pura que devuelve opcional debe modelarse como tipo suma, no como `returns_optional: true`. |
|
||||
| `purity: impure` | `error_type` obligatorio. Toda impura declara explícitamente qué puede salir mal. |
|
||||
| `tested: true` | `test_file_path` obligatorio. `tests` no puede estar vacío. |
|
||||
| `tested: true` | `test_file_path` obligatorio. `tests` no puede estar vacío. `fn index` extrae los test cases a la tabla `unit_tests` (ver [testing.md](testing.md)). |
|
||||
| `tested: false` | `tests` vacío. `test_file_path` vacío. |
|
||||
| `uses_functions[]` | Todos los IDs deben existir en la tabla `functions`. Sin referencias huérfanas. |
|
||||
| `uses_types[]` | Todos los IDs deben existir en la tabla `types`. Sin referencias huérfanas. |
|
||||
|
||||
Reference in New Issue
Block a user