Conversation
Codecov Report
@@ Coverage Diff @@
## master #3168 +/- ##
==========================================
+ Coverage 92.34% 93.31% +0.96%
==========================================
Files 61 61
Lines 11592 11588 -4
==========================================
+ Hits 10705 10813 +108
+ Misses 887 775 -112
Continue to review full report at Codecov.
|
| if (is.na(decreasing) || !is.logical(decreasing)) stop("'decreasing' must be logical TRUE or FALSE") | ||
| cols = substitute(list(...))[-1L] | ||
| if (identical(as.character(cols),"NULL") || !length(cols)) return(NULL) # to provide the same output as base::order | ||
| if (identical(as.character(cols),"NULL") || !length(cols) || (length(cols) == 1L && !nzchar(cols))) return(NULL) # to provide the same output as base::order |
There was a problem hiding this comment.
this covers forder(DT, ) case, which errored otherwise later on and with a weird message
R/setkey.R
Outdated
|
|
||
| setorderv <- function(x, cols, order=1L, na.last=FALSE) | ||
| { | ||
| if (missing(cols)) cols = colnames(x) |
There was a problem hiding this comment.
As discussed in #3169; not setting as default argument for now as that may be a breaking change.
There was a problem hiding this comment.
what breaking change it would be precisely?
There was a problem hiding this comment.
I dunno. I guess adding a default argument is different from removing a default argument. Will fix
3a9e303 to
c4774ce
Compare
|
@jangorecki but all the CI seems to give the output Can you confirm which is right/why the difference? Full code: |
|
I get locally can you try R --vanilla? |
|
Doesn't close #3172... I don't know what's going on here, some where primitive-base-S4 thing going on I can't seem to fix:
Might need to do some |
|
@jangorecki yea it took me a while to cook this one up... Rstudio Details
Details |
|
@jangorecki shall I just delete that test here? since presumably it's testing wrong behavior, just leave that test for #3173 |
|
Yes, please remove that test from here. I already included it in another branch. Any idea what was the profile config that was messing up output from |
not a clue... |
|
Looks great. Nearly +1% coverage! |
|
Fixed the failing tests. One was giving me whack-a-mole problems so I just dropped it. If there's still some coverage missed we'll get back to it eventually. |
|
@mattdowle not sure how |
|
@MichaelChirico I'm not really sure either but maybe new added lines (like all the new tests you added here) aren't counted as "diff" (changed lines) for the purpose of that 89% patch coverage figure. If you click the "Diff" tab on codecov.io, it is showing 5 |
|
@mattdowle I see... a couple of those were branches that I tried to take a swing at and couldn't hit for the life of me... So I gave up on adding tests there for now (resisted the urge to |
|
@MichaelChirico Ok I see. Agree - good approach i.e. those 6 will remain in the project uncovered list until someone can get to them, then. Will merge. |
| ## uniqlist.R | ||
| test(1962.10, uniqlist(1:5), | ||
| error = 'not type list') | ||
| test(1962.11, uniqlist(list()), list(0L)) |
There was a problem hiding this comment.
@MichaelChirico This is an example where blind aiming for higher code cov can cause an issue. AFAIU uniqlist was used more widely before, as of now it is being used in very few places. None of those, AFAICT, requires this case to be handled in the way as it is defined by 1962.11 test. So now in #4372 I am changing this behaviour and because of this test (that has been added in a batch, for code cov, and not really because it was required), my PR might look like a breaking change.
I am just elaborating, so that we can be aware it might be better not to increase codecov like this, because we adapt use cases (tests) to the code, and it should be the opposite, code should be adapted to a uses cases (tests).
There was a problem hiding this comment.
i think it's fine anyway. the change is in fact breaking right? just that we don't care if internal behavior changes. easy enough to note on the new PR that the altered tests are of internal behavior.
Closes #3167
Closes #3169
Ran out of steam to do more tests for now.
I'm not sure if we have any way of doing the
!cedta()tests so I justnocov'd them.