Skip to content

Commit 2985fad

Browse files
committed
added #nocov tags for files unlikely to get tests
1 parent eb2c92b commit 2985fad

File tree

5 files changed

+19
-12
lines changed

5 files changed

+19
-12
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2016-12-09 Dirk Eddelbuettel <[email protected]>
2+
3+
* R/00_classes.R: Added #nocov tags
4+
* R/01_show.R: Ditto
5+
* R/02_completion.R: Ditto
6+
* R/03_prompt.R: Ditto
7+
18
2016-12-07 Dirk Eddelbuettel <[email protected]>
29

310
* inst/include/Rcpp/vector/Matrix.h: Add 'using ...' to disambiguate size()

R/00_classes.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2010 - 2012 John Chambers, Dirk Eddelbuettel and Romain Francois
1+
# Copyright (C) 2010 - 2016 John Chambers, Dirk Eddelbuettel and Romain Francois
22
#
33
# This file is part of Rcpp.
44
#
@@ -16,7 +16,7 @@
1616
# along with Rcpp. If not, see <http://www.gnu.org/licenses/>.
1717

1818
# anticipating a change in R 2.16.0
19-
setClass( "refClassGeneratorFunction" )
19+
setClass( "refClassGeneratorFunction" ) # #nocov start
2020
setClassUnion("refGenerator", c("refObjectGenerator", "refClassGeneratorFunction"))
2121

2222
## "Module" class as an environment with "pointer", "moduleName",
@@ -106,4 +106,4 @@ setClass( "C++Function",
106106
fun
107107
}
108108
setGeneric( "formals<-" )
109-
setMethod( "formals<-", "C++Function", .cppfunction_formals_gets )
109+
setMethod( "formals<-", "C++Function", .cppfunction_formals_gets ) # #nocov end

R/01_show.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2010 - 2012 John Chambers, Dirk Eddelbuettel and Romain Francois
1+
# Copyright (C) 2010 - 2016 John Chambers, Dirk Eddelbuettel and Romain Francois
22
#
33
# This file is part of Rcpp.
44
#
@@ -15,7 +15,7 @@
1515
# You should have received a copy of the GNU General Public License
1616
# along with Rcpp. If not, see <http://www.gnu.org/licenses/>.
1717

18-
setMethod( "show", "C++Object", function(object){
18+
setMethod( "show", "C++Object", function(object){ # #nocov start
1919
env <- as.environment(object)
2020
pointer <- get(".pointer", envir = env)
2121
cppclass <- get(".cppclass", envir = env)
@@ -120,5 +120,5 @@ setMethod( "show", "Module", function( object ){
120120
txt <- sprintf( "%15s ", names(info) )
121121
writeLines( txt )
122122
}
123-
} )
123+
} ) # #nocov end
124124

R/02_completion.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2010 - 2011 John Chambers, Dirk Eddelbuettel and Romain Francois
1+
# Copyright (C) 2010 - 2016 John Chambers, Dirk Eddelbuettel and Romain Francois
22
#
33
# This file is part of Rcpp.
44
#
@@ -15,7 +15,7 @@
1515
# You should have received a copy of the GNU General Public License
1616
# along with Rcpp. If not, see <http://www.gnu.org/licenses/>.
1717

18-
setGeneric( ".DollarNames" )
18+
setGeneric( ".DollarNames" ) # #nocov start
1919
.DollarNames.Module <- function(x, pattern){
2020
pointer <- .getModulePointer( x )
2121
if(identical(pointer, .badModulePointer)) {
@@ -40,4 +40,4 @@ setMethod( "complete", "C++Object", function(x){
4040
grep( pattern, complete(x), value = TRUE )
4141
}
4242
setMethod( ".DollarNames", "C++Object", `.DollarNames.C++Object` )
43-
43+
# #nocov end

R/03_prompt.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2010 - 2011 John Chambers, Dirk Eddelbuettel and Romain Francois
1+
# Copyright (C) 2010 - 2016 John Chambers, Dirk Eddelbuettel and Romain Francois
22
#
33
# This file is part of Rcpp.
44
#
@@ -15,7 +15,7 @@
1515
# You should have received a copy of the GNU General Public License
1616
# along with Rcpp. If not, see <http://www.gnu.org/licenses/>.
1717

18-
setGeneric( "functions", function(object, ...) standardGeneric( "functions" ) )
18+
setGeneric( "functions", function(object, ...) standardGeneric( "functions" ) ) # #nocov start
1919
setMethod( "functions", "Module", function(object, ...){
2020
pointer <- .getModulePointer(object)
2121
if(identical(pointer, .badModulePointer))
@@ -59,5 +59,5 @@ setMethod( "prompt", "Module", function(object, filename = NULL, name = NULL, ..
5959

6060
writeLines( lines, filename )
6161
invisible(NULL)
62-
} )
62+
} ) # nocov end
6363

0 commit comments

Comments
 (0)