function testSearchRule({ re, negative, scope }) {
  return negative ^ (
    re.test(this[scope || 'desc'])
    || !scope && re.test(this.code)
  );
}
@this {Object} $cache, see initScript()
@param {VMSearchRule} rule
@return {number}