Skip to content

Commit

Permalink
update test snapshots for #204
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Aug 14, 2024
1 parent c2a57b2 commit c9eaa2b
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 95 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: pkgcheck
Title: rOpenSci Package Checks
Version: 0.1.2.051
Version: 0.1.2.052
Authors@R: c(
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265")),
Expand Down
10 changes: 7 additions & 3 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"codeRepository": "https://github.com/ropensci-review-tools/pkgcheck",
"issueTracker": "https://github.com/ropensci-review-tools/pkgcheck/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.1.2.51",
"version": "0.1.2.052",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down Expand Up @@ -348,10 +348,14 @@
},
"sameAs": "https://CRAN.R-project.org/package=withr"
},
"SystemRequirements": null
"SystemRequirements": {}
},
"fileSize": "259.412KB",
"readme": "https://github.com/ropensci-review-tools/pkgcheck/blob/main/README.md",
"contIntegration": ["https://github.com/ropensci-review-tools/pkgcheck/actions?query=workflow%3AR-CMD-check", "https://github.com/ropensci-review-tools/pkgcheck/actions?query=workflow%3Apush-to-gitlab", "https://codecov.io/gh/ropensci-review-tools/pkgcheck"],
"contIntegration": [
"https://github.com/ropensci-review-tools/pkgcheck/actions?query=workflow%3AR-CMD-check",
"https://github.com/ropensci-review-tools/pkgcheck/actions?query=workflow%3Apush-to-gitlab",
"https://codecov.io/gh/ropensci-review-tools/pkgcheck"
],
"developmentStatus": "https://www.repostatus.org/#concept"
}
44 changes: 22 additions & 22 deletions tests/testthat/_snaps/extra-checks/checks-extra.html
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,13 @@ <h3>2. Statistical Properties</h3>
<tr class="odd">
<td align="left"><a tooltip="tooltip" title="Number of files in R directory">files_R</a></td>
<td align="right">19</td>
<td align="right">79.7</td>
<td align="right">78.4</td>
<td align="left"></td>
</tr>
<tr class="even">
<td align="left"><a tooltip="tooltip" title="Number of files in src directory">files_src</a></td>
<td align="right">3</td>
<td align="right">84.3</td>
<td align="right">85.9</td>
<td align="left"></td>
</tr>
<tr class="odd">
Expand All @@ -243,25 +243,25 @@ <h3>2. Statistical Properties</h3>
<tr class="even">
<td align="left"><a tooltip="tooltip" title="Number of files in tests directory">files_tests</a></td>
<td align="right">7</td>
<td align="right">86.4</td>
<td align="right">82.2</td>
<td align="left"></td>
</tr>
<tr class="odd">
<td align="left"><a tooltip="tooltip" title="Lines of code (excluding documentation and empty lines) in R directory">loc_R</a></td>
<td align="right">2698</td>
<td align="right">89.0</td>
<td align="right">87.3</td>
<td align="left"></td>
</tr>
<tr class="even">
<td align="left"><a tooltip="tooltip" title="Lines of code (excluding documentation and empty lines) in src directory">loc_src</a></td>
<td align="right">277</td>
<td align="right">33.9</td>
<td align="right">35.5</td>
<td align="left"></td>
</tr>
<tr class="odd">
<td align="left"><a tooltip="tooltip" title="Lines of code (excluding documentation and empty lines) in tests directory">loc_tests</a></td>
<td align="right">266</td>
<td align="right">61.5</td>
<td align="right">58.0</td>
<td align="left"></td>
</tr>
<tr class="even">
Expand All @@ -273,91 +273,91 @@ <h3>2. Statistical Properties</h3>
<tr class="odd">
<td align="left"><a tooltip="tooltip" title="Total number of exported and non-exported R functions">n_fns_r</a></td>
<td align="right">131</td>
<td align="right">82.6</td>
<td align="right">80.9</td>
<td align="left"></td>
</tr>
<tr class="even">
<td align="left"><a tooltip="tooltip" title="Total number of exported R functions">n_fns_r_exported</a></td>
<td align="right">11</td>
<td align="right">48.6</td>
<td align="right">48.5</td>
<td align="left"></td>
</tr>
<tr class="odd">
<td align="left"><a tooltip="tooltip" title="Total number of non-exported R functions">n_fns_r_not_exported</a></td>
<td align="right">120</td>
<td align="right">87.0</td>
<td align="right">85.2</td>
<td align="left"></td>
</tr>
<tr class="even">
<td align="left"><a tooltip="tooltip" title="Total number of exported and non-exported src functions">n_fns_src</a></td>
<td align="right">12</td>
<td align="right">33.3</td>
<td align="right">43.1</td>
<td align="left"></td>
</tr>
<tr class="odd">
<td align="left"><a tooltip="tooltip" title="Median number of functions per R source file">n_fns_per_file_r</a></td>
<td align="right">4</td>
<td align="right">58.6</td>
<td align="right">60.0</td>
<td align="left"></td>
</tr>
<tr class="even">
<td align="left"><a tooltip="tooltip" title="Median number of functions per src source file">n_fns_per_file_src</a></td>
<td align="right">4</td>
<td align="right">40.2</td>
<td align="right">49.4</td>
<td align="left"></td>
</tr>
<tr class="odd">
<td align="left"><a tooltip="tooltip" title="Median number of parameters per exported R function">num_params_per_fn</a></td>
<td align="right">1</td>
<td align="right">1.6</td>
<td align="right">1.8</td>
<td align="left">TRUE</td>
</tr>
<tr class="even">
<td align="left"><a tooltip="tooltip" title="Median number of lines of code for each R function">loc_per_fn_r</a></td>
<td align="right">23</td>
<td align="right">66.0</td>
<td align="right">66.3</td>
<td align="left"></td>
</tr>
<tr class="odd">
<td align="left"><a tooltip="tooltip" title="Median number of lines of code for each exported R function">loc_per_fn_r_exp</a></td>
<td align="right">43</td>
<td align="right">75.2</td>
<td align="right">75.1</td>
<td align="left"></td>
</tr>
<tr class="even">
<td align="left"><a tooltip="tooltip" title="Median number of lines of code for each non-exported R function">loc_per_fn_r_not_exp</a></td>
<td align="right">22</td>
<td align="right">66.5</td>
<td align="right">67.0</td>
<td align="left"></td>
</tr>
<tr class="odd">
<td align="left"><a tooltip="tooltip" title="Median number of lines of code for each src function">loc_per_fn_src</a></td>
<td align="right">16</td>
<td align="right">55.6</td>
<td align="right">59.3</td>
<td align="left"></td>
</tr>
<tr class="even">
<td align="left"><a tooltip="tooltip" title="Relative proportion of white characters within each R code line">rel_whitespace_R</a></td>
<td align="right">19</td>
<td align="right">88.9</td>
<td align="right">87.4</td>
<td align="left"></td>
</tr>
<tr class="odd">
<td align="left"><a tooltip="tooltip" title="Relative proportion of white characters within each src code line">rel_whitespace_src</a></td>
<td align="right">24</td>
<td align="right">41.5</td>
<td align="right">46.0</td>
<td align="left"></td>
</tr>
<tr class="even">
<td align="left"><a tooltip="tooltip" title="Relative proportion of white characters within each test line">rel_whitespace_tests</a></td>
<td align="right">27</td>
<td align="right">64.6</td>
<td align="right">62.6</td>
<td align="left"></td>
</tr>
<tr class="odd">
<td align="left"><a tooltip="tooltip" title="Median number of lines of documentation for each exported R function">doclines_per_fn_exp</a></td>
<td align="right">31</td>
<td align="right">34.8</td>
<td align="right">34.7</td>
<td align="left"></td>
</tr>
<tr class="even">
Expand All @@ -369,7 +369,7 @@ <h3>2. Statistical Properties</h3>
<tr class="odd">
<td align="left"><a tooltip="tooltip" title="Total number of calls from one package function to another">fn_call_network_size</a></td>
<td align="right">104</td>
<td align="right">79.9</td>
<td align="right">78.7</td>
<td align="left"></td>
</tr>
</tbody>
Expand Down
44 changes: 22 additions & 22 deletions tests/testthat/_snaps/extra-checks/checks-extra.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,31 +108,31 @@ The final measure (`fn_call_network_size`) is the total number of calls between

|measure | value| percentile|noteworthy |
|:-----------------------|-----:|----------:|:----------|
|files_R | 19| 79.7| |
|files_src | 3| 84.3| |
|files_R | 19| 78.4| |
|files_src | 3| 85.9| |
|files_vignettes | 0| 0.0|TRUE |
|files_tests | 7| 86.4| |
|loc_R | 2698| 89.0| |
|loc_src | 277| 33.9| |
|loc_tests | 266| 61.5| |
|files_tests | 7| 82.2| |
|loc_R | 2698| 87.3| |
|loc_src | 277| 35.5| |
|loc_tests | 266| 58.0| |
|num_vignettes | 0| 0.0|TRUE |
|n_fns_r | 131| 82.6| |
|n_fns_r_exported | 11| 48.6| |
|n_fns_r_not_exported | 120| 87.0| |
|n_fns_src | 12| 33.3| |
|n_fns_per_file_r | 4| 58.6| |
|n_fns_per_file_src | 4| 40.2| |
|num_params_per_fn | 1| 1.6|TRUE |
|loc_per_fn_r | 23| 66.0| |
|loc_per_fn_r_exp | 43| 75.2| |
|loc_per_fn_r_not_exp | 22| 66.5| |
|loc_per_fn_src | 16| 55.6| |
|rel_whitespace_R | 19| 88.9| |
|rel_whitespace_src | 24| 41.5| |
|rel_whitespace_tests | 27| 64.6| |
|doclines_per_fn_exp | 31| 34.8| |
|n_fns_r | 131| 80.9| |
|n_fns_r_exported | 11| 48.5| |
|n_fns_r_not_exported | 120| 85.2| |
|n_fns_src | 12| 43.1| |
|n_fns_per_file_r | 4| 60.0| |
|n_fns_per_file_src | 4| 49.4| |
|num_params_per_fn | 1| 1.8|TRUE |
|loc_per_fn_r | 23| 66.3| |
|loc_per_fn_r_exp | 43| 75.1| |
|loc_per_fn_r_not_exp | 22| 67.0| |
|loc_per_fn_src | 16| 59.3| |
|rel_whitespace_R | 19| 87.4| |
|rel_whitespace_src | 24| 46.0| |
|rel_whitespace_tests | 27| 62.6| |
|doclines_per_fn_exp | 31| 34.7| |
|doclines_per_fn_not_exp | 0| 0.0|TRUE |
|fn_call_network_size | 104| 79.9| |
|fn_call_network_size | 104| 78.7| |

---

Expand Down
Loading

0 comments on commit c9eaa2b

Please sign in to comment.