Displaying 11 results from an estimated 11 matches for "check_string".
2015 Apr 19
4
running unit tests on the stringr package
...g length : .........
Locations : ............
Matching groups : ..............
Test padding : ....
Splitting strings : .........................
Extracting substrings : ...................
Trimming strings : ........
1. Failure(@test-check.r#4): string is atomic ----------------------------------
check_string(list()) does not match 'must be an atomic'. Actual value:
"Error in force(expr) : could not find function "check_string"\n"
2. Failure(@test-check.r#9): pattern is a string -------------------------------
check_pattern(1) does not match 'must be a character vector...
2015 Apr 20
0
running unit tests on the stringr package
Dear Raju
I agree to Dirk that this is not really the best place for these matters, but
as I got curious, I checked and found you should use test_package() and not
test_dir(), as the latter does not load unexported functions of the package
(such as check_string()) that may occur in the tests.
For packaging of r-cran-stringr, it is probably most efficient to file a bug
report there because of the missing Suggests for r-cran-testthat.
Kind regards,
Johannes
Am Sonntag, 19. April 2015, 17:58:53 schrieb kamaraju kusumanchi:
> I am trying to learn how...
2011 Nov 13
0
Roxygen2: version 2.2
...? ? #' @keywords character? ? #'
@seealso \code{\link{nchar}} which this function wraps? ? #' @export
#' @examples? ? #' str_length(letters)? ? #' str_length(c("i",
"like", "programming", NA))? ? str_length <- function(string) {
string <- check_string(string)
? ? ? nc <- nchar(string, allowNA = TRUE)? ? ? is.na(nc) <-
is.na(string)? ? ? nc? ? }
When you `roxygenise` your package these comments will be
automatically transformed to the Rd file you need to pass `R CMD
check`:
? ? \name{str_length}? ? \alias{str_length}? ? \title{The length of...
2011 Nov 13
0
Roxygen2: version 2.2
...? ? #' @keywords character? ? #'
@seealso \code{\link{nchar}} which this function wraps? ? #' @export
#' @examples? ? #' str_length(letters)? ? #' str_length(c("i",
"like", "programming", NA))? ? str_length <- function(string) {
string <- check_string(string)
? ? ? nc <- nchar(string, allowNA = TRUE)? ? ? is.na(nc) <-
is.na(string)? ? ? nc? ? }
When you `roxygenise` your package these comments will be
automatically transformed to the Rd file you need to pass `R CMD
check`:
? ? \name{str_length}? ? \alias{str_length}? ? \title{The length of...
2019 Sep 28
11
[nbdkit PATCH v2 0/7] Spec compliance patches
Since the v1 series (0/4, at [1]), I've applied patches 1 and 2,
rewritten patch 3 [Forbid NUL in export and context names] into patch
4 here, patch 4 there turned into patch 6 here, and everything else
here is new.
[1]https://www.redhat.com/archives/libguestfs/2019-September/msg00180.html
I don't know if there is a handy reusable function for checking
whether a string contains valid
2007 Jul 18
0
12 commits - configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_playback_alsa.c libswfdec/jpeg libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c
...rror)) {
g_string_append_printf (output,
" ERROR: Could not spawn diff to compare the results: %s\n",
diff --git a/test/various/gc.c b/test/various/gc.c
index a6e378b..ebc87a8 100644
--- a/test/various/gc.c
+++ b/test/various/gc.c
@@ -33,7 +33,7 @@
}G_STMT_END
static guint
-check_strings ()
+check_strings (void)
{
const char *s;
guint errors = 0;
@@ -52,7 +52,7 @@ check_strings ()
}
static guint
-check_objects ()
+check_objects (void)
{
SwfdecAsObject *object;
guint errors = 0;
@@ -85,7 +85,7 @@ check_objects ()
}
static guint
-check_object_variables ()
+chec...
2020 Jul 21
4
[PATCH nbdkit] server: Pass the export name through filter .open calls.
..._from_set_meta_context, exportname);
+ conn->meta_context_base_allocation = false;
+ }
+
+ if (protocol_common_open (exportsize, &conn->eflags, exportname) == -1)
return -1;
debug ("newstyle negotiation: flags: export 0x%x", conn->eflags);
@@ -238,22 +256,13 @@ check_string (uint32_t option, char *buf, uint32_t len, uint32_t maxlen,
*/
static int
check_export_name (uint32_t option, char *buf,
- uint32_t exportnamelen, uint32_t maxlen, bool save)
+ uint32_t exportnamelen, uint32_t maxlen)
{
GET_CONN;
if (check_string (op...
2020 Feb 11
0
[PATCH nbdkit 3/3] server: Remove explicit connection parameter, use TLS instead.
...rotocol_common_open (conn, exportsize, &conn->eflags) == -1)
+ struct connection *conn = GET_CONN;
+
+ if (protocol_common_open (exportsize, &conn->eflags) == -1)
return -1;
debug ("newstyle negotiation: flags: export 0x%x", conn->eflags);
@@ -233,9 +231,11 @@ check_string (uint32_t option, char *buf, uint32_t len, uint32_t maxlen,
* validate an export name.
*/
static int
-check_export_name (struct connection *conn, uint32_t option, char *buf,
+check_export_name (uint32_t option, char *buf,
uint32_t exportnamelen, uint32_t maxlen, bool save)...
2020 Feb 11
4
[PATCH nbdkit v2 0/3] server: Remove explicit connection parameter.
v1 was here:
https://www.redhat.com/archives/libguestfs/2020-February/msg00081.html
v2 replaces
struct connection *conn = GET_CONN;
with
GET_CONN;
which sets conn implicitly and asserts that it is non-NULL.
If we actually want to test if conn is non-NULL or behave
differently, then you must use threadlocal_get_conn() instead,
and some existing uses do that.
Rich.
2020 Feb 11
5
[PATCH nbdkit 0/3] server: Remove explicit connection parameter.
The third patch is a large but mechanical change which gets rid of
passing around struct connection * entirely within the server,
preferring instead to reference the connection through thread-local
storage.
I hope this is a gateway to simplifying other parts of the code.
Rich.
2010 May 02
2
samba4 make error - drsblobs.so
Hello - make fails to build the latest git of samba4 - erroring on drsblobs.so. Below is a full log from autogen.sh to the make. Would you have any suggestions on proceeding?
Thank you,
Ryan
ryan at test1:~/samba-master/source4$ sudo ./autogen.sh
./autogen.sh: running script/mkversion.sh
./script/mkversion.sh: 'version.h' created for Samba("4.0.0alpha12-GIT-d83850a")