Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor TableTest assertion methods to a separate utility class #9762

Merged
merged 1 commit into from
Nov 30, 2021

Conversation

jlowe
Copy link
Member

@jlowe jlowe commented Nov 23, 2021

TableTest has a number of dependencies, e.g.: Parquet, Hadoop, etc., that make it less ideal to be used in an external project. This moves the column and table assertion methods to a separate AssertUtils utility class that avoids the extra dependencies.

@jlowe jlowe added tests Unit testing for project Java Affects Java cuDF API. 4 - Needs cuDF (Java) Reviewer improvement Improvement / enhancement to an existing function breaking Breaking change labels Nov 23, 2021
@jlowe jlowe self-assigned this Nov 23, 2021
@jlowe jlowe requested a review from a team as a code owner November 23, 2021 16:26
@codecov
Copy link

codecov bot commented Nov 23, 2021

Codecov Report

Merging #9762 (38c0ac1) into branch-22.02 (967a333) will increase coverage by 0.07%.
The diff coverage is 0.00%.

Impacted file tree graph

@@               Coverage Diff                @@
##           branch-22.02    #9762      +/-   ##
================================================
+ Coverage         10.49%   10.56%   +0.07%     
================================================
  Files               119      119              
  Lines             20305    20364      +59     
================================================
+ Hits               2130     2151      +21     
- Misses            18175    18213      +38     
Impacted Files Coverage Δ
python/cudf/cudf/core/column/column.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/frame.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/index.py 0.00% <ø> (ø)
python/cudf/cudf/core/indexed_frame.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/multiindex.py 0.00% <0.00%> (ø)
python/cudf/cudf/utils/utils.py 0.00% <0.00%> (ø)
python/cudf/cudf/__init__.py 0.00% <0.00%> (ø)
python/dask_cudf/dask_cudf/io/tests/test_csv.py 100.00% <0.00%> (ø)
python/dask_cudf/dask_cudf/io/csv.py 96.70% <0.00%> (+0.81%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 85df759...38c0ac1. Read the comment docs.

* @param expect The expected result column
* @param cv The input column
*/
public static void assertColumnsAreEqual(ColumnView expect, ColumnView cv) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: name "expected" to be consistent with other methods.

Suggested change
public static void assertColumnsAreEqual(ColumnView expect, ColumnView cv) {
public static void assertColumnsAreEqual(ColumnView expected, ColumnView cv) {

@jlowe
Copy link
Member Author

jlowe commented Nov 23, 2021

@gpucibot merge

@jlowe
Copy link
Member Author

jlowe commented Nov 30, 2021

rerun tests

@rapids-bot rapids-bot bot merged commit 00a8845 into rapidsai:branch-22.02 Nov 30, 2021
@vyasr vyasr added 4 - Needs Review Waiting for reviewer to review or respond and removed 4 - Needs cuDF (Java) Reviewer labels Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 - Needs Review Waiting for reviewer to review or respond breaking Breaking change improvement Improvement / enhancement to an existing function Java Affects Java cuDF API. tests Unit testing for project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants