Improve test coverage for `constructors.kt`
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 1.1k
- Forks
- 83
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 30
Description
Improve test coverage for constructors.kt
Add tests for public APIs in core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/constructors.kt.
Current coverage is low: around 5% by methods and 10% by lines.
Cover main constructor groups:
column,valueColumn,columnGroup,frameColumncolumnOf,columndataFrameOf,DataFrameBuilder,DynamicDataFrameBuilderemptyDataFrame,pathOf
Focus on key behavior: type inference, generated/duplicate names, nested column groups/frame columns, builder-style dataframe creation, unequal column sizes, and duplicate column names.
Use existing tests in core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/api/constructors.kt as the starting point.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/api/constructors.kt and compare it with the public APIs in core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/constructors.kt. Add tests covering the listed constructor groups and behaviors, including type inference, generated and duplicate names, nested groups, builders, unequal sizes, and duplicate column names. Done means the new tests exercise the requested public APIs and pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- data, testing
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100