The codebase has zero tests — no #[cfg(test)] modules, no tests/ directory, no test fixtures. CI runs cargo test vacuously. The most complex modules (schema.rs at 761 lines and generate.rs at 478 lines) handle recursive OpenAPI schema parsing and YAML generation with no regression protection.
Recommended approach:
- Unit tests for
v2_parse_resource, v3_parse_resource, find_definition_key, filter_fields, is_commonly_needed, and the YamlNode emitter
- Snapshot/golden tests with fixture JSON schemas from real clusters
- Integration tests that mock the kube API server responses
The codebase has zero tests — no
#[cfg(test)]modules, notests/directory, no test fixtures. CI runscargo testvacuously. The most complex modules (schema.rsat 761 lines andgenerate.rsat 478 lines) handle recursive OpenAPI schema parsing and YAML generation with no regression protection.Recommended approach:
v2_parse_resource,v3_parse_resource,find_definition_key,filter_fields,is_commonly_needed, and theYamlNodeemitter