@@ -8,19 +8,13 @@ test = require('../helpers.coffee')
88
99assert = require (' assert' )
1010
11- # plv8.debug = true
1211get_in = (obj , path )->
1312 cur = obj
1413 cur = cur[item] for item in path when cur
1514 cur
1615
1716match = (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-
2418FILTER = ' uri'
2519FILTER = ' incl'
2620FILTER = ' 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