-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2562 avoid_info_in_tests: catch message in wrapper function and reph…
…rase them
- Loading branch information
Showing
10 changed files
with
201 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# derive_param_qtc Test 4: Message if no new records | ||
|
||
Code | ||
actual <- derive_param_qtc(input, by_vars = exprs(USUBJID, VISIT), method = "Bazett", | ||
get_unit_expr = AVALU) | ||
Message | ||
No computed records were added because for all potential computed records at least one of the contributing values was NA. | ||
If this is not expected, please check the input data. | ||
|
||
# derive_param_rr Test 6: Message if no new records | ||
|
||
Code | ||
actual <- derive_param_rr(input, by_vars = exprs(USUBJID, VISIT), | ||
set_values_to = exprs(PARAMCD = "RRR", PARAM = "RR Duration Rederived (ms)", | ||
AVALU = "ms"), get_unit_expr = AVALU) | ||
Message | ||
No computed records were added because for all potential computed records at least one of the contributing values was NA. | ||
If this is not expected, please check the input data. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# derive_param_bmi Test 36: BMI parameter NOT added | ||
|
||
Code | ||
result <- derive_param_bmi(input, by_vars = exprs(USUBJID, VISIT), | ||
get_unit_expr = VSSTRESU) | ||
Message | ||
No computed records were added because for all potential computed records at least one of the contributing values was NA. | ||
If this is not expected, please check the input data. | ||
|
||
# derive_param_bsa Test 43: BSA parameter NOT added | ||
|
||
Code | ||
result <- derive_param_bsa(input, by_vars = exprs(USUBJID, VISIT), method = "Mosteller", | ||
get_unit_expr = VSSTRESU) | ||
Message | ||
No computed records were added because for all potential computed records at least one of the contributing values was NA. | ||
If this is not expected, please check the input data. | ||
|
||
# derive_param_map Test 56: MAP parameter NOT added | ||
|
||
Code | ||
result <- derive_param_map(input, by_vars = exprs(USUBJID, VISIT), hr_code = "PULSE", | ||
get_unit_expr = extract_unit(PARAM)) | ||
Message | ||
No computed records were added because for all potential computed records at least one of the contributing values was NA. | ||
If this is not expected, please check the input data. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters