Skip to content

Commit

Permalink
Making the test framework SQL prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
schuemie committed Apr 29, 2016
1 parent 4cd56b6 commit facb154
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/org/ohdsi/rabbitInAHat/ETLTestFrameWorkGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ private static void createDeclareTestFunction(List<String> r) {
r.add("declareTest <- function(id, description) {");
r.add(" assign(\"testId\", id, envir = globalenv()) ");
r.add(" assign(\"testDescription\", description, envir = globalenv()) ");
r.add(" sql <- c(\"\", paste0(\"-- \", id, \": \", description))");
r.add(" assign(\"insertSql\", c(get(\"insertSql\", envir = globalenv()), sql), envir = globalenv())");
r.add(" assign(\"testSql\", c(get(\"testSql\", envir = globalenv()), sql), envir = globalenv())");
r.add("}");
r.add("");
}
Expand Down

0 comments on commit facb154

Please sign in to comment.