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

Add tests for ahr_blinded() #435

Merged
merged 9 commits into from
Aug 29, 2024
Merged

Add tests for ahr_blinded() #435

merged 9 commits into from
Aug 29, 2024

Conversation

DMuriuki
Copy link
Collaborator

@DMuriuki DMuriuki commented Jul 9, 2024

Adding test file for the ahr_blinded() function.

@nanxstats
Copy link
Collaborator

Focus on tests/testthat/test-independent-ahr_blinded.R

@nanxstats nanxstats changed the title Ahr blinded test Add tests for ahr_blinded() Aug 2, 2024
Copy link
Collaborator

@nanxstats nanxstats left a comment

Choose a reason for hiding this comment

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

Hey @DMuriuki I rebased your PR so the merge conflicts are now resolved. Please take a look at this failing test and make necessary updates:

  ── Failure ('test-independent-ahr_blinded.R:17:3'): Piecewise model hr and intervals must be aligned ──
  `ahr_blinded(hr = c(1, 3), intervals = c(3, 4))` did not throw an error.

You can use

git clone -b ahr-blinded-test https://github.com/Merck/gsDesign2.git

to clone the latest version of this branch to local, install, fix the test, and push.

Copy link
Collaborator

@nanxstats nanxstats left a comment

Choose a reason for hiding this comment

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

@LittleBeannie This PR is ready for review. 90% code coverage for ahr_blinded().

@nanxstats nanxstats dismissed their stale review August 20, 2024 16:40

Issue fixed

Copy link
Collaborator

@LittleBeannie LittleBeannie left a comment

Choose a reason for hiding this comment

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

Thanks, @DMuriuki and @nanxstats for the testing! Following, please find my comments.

tests/testthat/test-independent-ahr_blinded.R Outdated Show resolved Hide resolved
tests/testthat/test-independent-ahr_blinded.R Outdated Show resolved Hide resolved
tests/testthat/test-independent-ahr_blinded.R Outdated Show resolved Hide resolved
tests/testthat/test-independent-ahr_blinded.R Outdated Show resolved Hide resolved
tests/testthat/test-independent-ahr_blinded.R Outdated Show resolved Hide resolved
tests/testthat/test-independent-ahr_blinded.R Outdated Show resolved Hide resolved
tests/testthat/test-independent-ahr_blinded.R Outdated Show resolved Hide resolved
@nanxstats
Copy link
Collaborator

@LittleBeannie Great, I've just removed the non-informative and unrealistic test cases.

Copy link
Collaborator

@LittleBeannie LittleBeannie left a comment

Choose a reason for hiding this comment

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

Thanks a lot, @DMuriuki and @nanxstats !

@LittleBeannie LittleBeannie merged commit cb774cc into main Aug 29, 2024
7 checks passed
@LittleBeannie LittleBeannie deleted the ahr-blinded-test branch August 29, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants