8000 Fix #711 - update unit tests for mapping functions by mattroumaya · Pull Request #717 · Gilead-BioStats/gsm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix #711 - update unit tests for mapping functions #717

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

Merged
merged 2 commits into from
Sep 8, 2022
Merged

Conversation

mattroumaya
Copy link
Contributor
@mattroumaya mattroumaya commented Sep 2, 2022

Overview

Fix #711

  • Fix unit tests for mapping functions only
  • Add helper function subset_input_mapping() to subset overall rawplus mapping
  • Add helper script to create unit test data using {clindata}

@@ -140,3 +140,8 @@ test_logical_parameters <- function(map_function, dfs) {
all(names(map_function(dfs = dfs, bReturnChecks = TRUE)) == c("df", "lChecks"))
)
}

subset_input_mapping <- function(input_spec, mapping_domain = "mapping_rawplus.yaml") {
Copy link
Contributor

Choose a reason for hiding this comment

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

Love it.

@@ -0,0 +1,111 @@

# Create Unit Test Data ---------------------------------------------------
# this is a helper script that can be used to (mostly) programatically update unit test data
Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome, this beats the heck out of updating those tribbles.

@samussiah
Copy link
Contributor

@mattroumaya, were #689 and #696 resolved in another PR?

Copy link
Contributor
@samussiah samussiah left a comment

Choose a reason for hiding this comment

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

This looks great @mattroumaya - love the programmatic test data! Just to confirm - did you intend to tag #689 and #696 here?

@mattroumaya
Copy link
Contributor Author

Thanks for the review @samussiah - and great catch on the linked PRs! Definitely meant to link them to the other open PR.

@mattroumaya mattroumaya merged commit 05e34e0 into dev Sep 8, 2022
@mattroumaya mattroumaya deleted the fix-711 branch September 8, 2022 13:33
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.

QC: Update unit tests for mapping functions
2 participants
0