Sha256: 6068946adc717746ef3456495c239f967b576a8a273e0fba3f01c293fda25724

Contents?: true

Size: 436 Bytes

Versions: 232

Compression:

Stored size: 436 Bytes

Contents

var Minimatch = require("../minimatch.js").Minimatch
var tap = require("tap")
tap.test("cache test", function (t) {
  var mm1 = new Minimatch("a?b")
  var mm2 = new Minimatch("a?b")
  t.equal(mm1, mm2, "should get the same object")
  // the lru should drop it after 100 entries
  for (var i = 0; i < 100; i ++) {
    new Minimatch("a"+i)
  }
  mm2 = new Minimatch("a?b")
  t.notEqual(mm1, mm2, "cache should have dropped")
  t.end()
})

Version data entries

232 entries across 146 versions & 13 rubygems

Version Path
ela-4.1.6 node_modules/minimatch/test/caching.js
ela-4.1.5 node_modules/minimatch/test/caching.js
ela-4.1.4 node_modules/minimatch/test/caching.js
ela-4.1.3 node_modules/minimatch/test/caching.js
ela-4.1.2 node_modules/minimatch/test/caching.js
ela-4.1.1 node_modules/minimatch/test/caching.js
ela-4.1.0 node_modules/minimatch/test/caching.js
ela-4.0.0 node_modules/minimatch/test/caching.js
ela-3.4.3 node_modules/minimatch/test/caching.js
ela-3.4.2 node_modules/minimatch/test/caching.js
ela-3.4.0 node_modules/minimatch/test/caching.js
ela-3.3.1 node_modules/minimatch/test/caching.js
ela-3.3.0 node_modules/minimatch/test/caching.js
ela-3.2.0 node_modules/minimatch/test/caching.js
ela-3.1.1 node_modules/minimatch/test/caching.js
ela-3.1.0 node_modules/minimatch/test/caching.js
ela-3.0.0 node_modules/minimatch/test/caching.js
ela-2.0.0 node_modules/minimatch/test/caching.js
ela-1.1.0 node_modules/minimatch/test/caching.js
blackboard-3.1.9 lib/site_template/node_modules/globule/node_modules/minimatch/test/caching.js