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

[R-package] added tests on lgb.prepare function #2685

Merged
merged 3 commits into from
Jan 12, 2020

Conversation

jameslamb
Copy link
Collaborator

In this PR, I propose unit tests on the following currently-untested functions in the R package:

  • lgb.prepare()
  • lgb.prepare2()
  • lgb.prepare_rules()
  • lgb.prepare_rules2()

The tests in this PR cover 100% of the code in those functions and raise the overall test coverage of the package 64.68% to 71.29% (see #2664 for instructions to reproduce that).

This PR also fixes some typos in error messages and removes some unnecessary comments.

While looking at these functions today, I also discovered some areas for improvement. I think it's important to get these tests in place before refactoring the functions. Issues added to #2302

@jameslamb jameslamb requested review from Laurae2 and guolinke January 12, 2020 07:05
@jameslamb jameslamb merged commit 2048b13 into microsoft:master Jan 12, 2020
@jameslamb jameslamb deleted the prepare_tests branch January 27, 2020 00:14
@lock lock bot locked as resolved and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants