Kotlin / Kotlin/dataframe

Improve test coverage for `constructors.kt`

Open
#1,955 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

tests
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, frameColumn
  • columnOf, column
  • dataFrameOf, DataFrameBuilder, DynamicDataFrameBuilder
  • emptyDataFrame, 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.