/* automatically generated by JSCoverage - do not edit */
if (typeof _$jscoverage === 'undefined') _$jscoverage = {};
if (! _$jscoverage['middleware/query.js']) {
  _$jscoverage['middleware/query.js'] = [];
  _$jscoverage['middleware/query.js'][12] = 0;
  _$jscoverage['middleware/query.js'][36] = 0;
  _$jscoverage['middleware/query.js'][37] = 0;
  _$jscoverage['middleware/query.js'][38] = 0;
  _$jscoverage['middleware/query.js'][39] = 0;
  _$jscoverage['middleware/query.js'][44] = 0;
}
_$jscoverage['middleware/query.js'][12]++;
var qs = require("qs"), parse = require("../utils").parseUrl;
_$jscoverage['middleware/query.js'][36]++;
module.exports = (function query(options) {
  _$jscoverage['middleware/query.js'][37]++;
  return (function query(req, res, next) {
  _$jscoverage['middleware/query.js'][38]++;
  if (! req.query) {
    _$jscoverage['middleware/query.js'][39]++;
    req.query = ~ req.url.indexOf("?")? qs.parse(parse(req).query, options): {};
  }
  _$jscoverage['middleware/query.js'][44]++;
  next();
});
});
_$jscoverage['middleware/query.js'].source = ["/*!"," * Connect - query"," * Copyright(c) 2011 TJ Holowaychuk"," * Copyright(c) 2011 Sencha Inc."," * MIT Licensed"," */","","/**"," * Module dependencies."," */","","var qs = require('qs')","  , parse = require('../utils').parseUrl;","","/**"," * Query:"," *"," * Automatically parse the query-string when available,"," * populating the `req.query` object."," *"," * Examples:"," *"," *     connect()"," *       .use(connect.query())"," *       .use(function(req, res){"," *         res.end(JSON.stringify(req.query));"," *       });"," *"," *  The `options` passed are provided to qs.parse function."," *"," * @param {Object} options"," * @return {Function}"," * @api public"," */","","module.exports = function query(options){","  return function query(req, res, next){","    if (!req.query) {","      req.query = ~req.url.indexOf('?')","        ? qs.parse(parse(req).query, options)","        : {};","    }","","    next();","  };","};"];
