Skip to content

Commit 645e132

Browse files
Removed commented out code
1 parent ba2a359 commit 645e132

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

test/fhir/search_spec.coffee

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,13 @@ test = require('../helpers.coffee')
88

99
assert = require('assert')
1010

11-
# plv8.debug = true
1211
get_in = (obj, path)->
1312
cur = obj
1413
cur = cur[item] for item in path when cur
1514
cur
1615

1716
match = (x)-> (y)-> y.indexOf(x) > -1
1817

19-
# plv8.debug = true
20-
21-
# console.log plv8.execute("SET search_path='user1';")
22-
# console.log plv8.execute("SHOW search_path;")
23-
2418
FILTER = 'uri'
2519
FILTER = 'incl'
2620
FILTER = 'search'
@@ -30,7 +24,6 @@ fs.readdirSync("#{__dirname}/search").filter(match(FILTER)).forEach (yml)->
3024
describe spec.title, ->
3125
before ->
3226
plv8.execute("SET plv8.start_proc = 'plv8_init'")
33-
# plv8.debug = true
3427

3528
for res in spec.resources
3629
schema.fhir_create_storage(plv8, resourceType: res)
@@ -56,9 +49,7 @@ fs.readdirSync("#{__dirname}/search").filter(match(FILTER)).forEach (yml)->
5649
plv8.execute "SET enable_seqscan = OFF;" if (q.indexed or q.indexed_order)
5750

5851
res = search.fhir_search(plv8, q.query)
59-
# console.log(JSON.stringify(res))
6052
explain = JSON.stringify(search.fhir_explain_search(plv8, q.query))
61-
# console.log(JSON.stringify(search.fhir_search_sql(plv8, q.query)))
6253

6354
plv8.execute "SET enable_seqscan = ON;" if (q.indexed or q.indexed_order)
6455

@@ -74,8 +65,6 @@ fs.readdirSync("#{__dirname}/search").filter(match(FILTER)).forEach (yml)->
7465
else
7566
assert.equal(get_in(res, probe.path), probe.result)
7667

77-
# console.log(explain)
78-
7968
if q.indexed
8069
assert(explain.indexOf("Index Cond") > -1, "Should be indexed but #{explain}")
8170
if q.indexed_order

0 commit comments

Comments
 (0)