Projektstart
This commit is contained in:
11
backend/node_modules/thread-stream/test/indexes.test.js
generated
vendored
Normal file
11
backend/node_modules/thread-stream/test/indexes.test.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const indexes = require('../lib/indexes')
|
||||
|
||||
for (const index of Object.keys(indexes)) {
|
||||
test(`${index} is lock free`, function (t) {
|
||||
t.equal(Atomics.isLockFree(indexes[index]), true)
|
||||
t.end()
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user