test(code-graph): add Kotlin data-class component-function fixture
What
Add fixtures/kotlin/data_classes.yaml with test coverage for Kotlin data classes, including definition extraction, constructor calls, property fields, and cross-file destructuring.
Why
Kotlin data classes generate component1(), component2(), copy(), etc. implicitly. Destructuring syntax (val (a, b) = pair) compiles to component calls. There was no test coverage for data classes.
This fixture pins down the current indexer behavior so regressions are caught.
What is tested
- data class Pair and User extracted as Class definitions
- Constructor properties extracted as Field definitions
- Constructor calls resolved from calling functions
- Cross-file data class usage and destructuring
- yaml_test! registration in suites.rs
How to test
cargo nextest run -p integration-tests-codegraph -E 'test(kotlin_data_classes)'Closes #761 (closed)