MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / xadd

Method xadd

lib/data/table.js:25–35  ·  view source on GitHub ↗

@param {Array<*>} array

(array)

Source from the content-addressed store, hash-verified

23
24 /** @param {Array<*>} array */
25 xadd(array) {
26 if (array.length !== this.array.length) throw new Error(`There is too many elements in given data array. Please provide data in this format: ${this.array}`)
27 const tempObj = {}
28 let arrayCounter = 0
29 this.array.forEach(elem => {
30 tempObj[elem] = array[arrayCounter]
31 tempObj.toString = () => JSON.stringify(tempObj)
32 arrayCounter++
33 })
34 this.rows.push({ skip: true, data: tempObj })
35 }
36
37 /** @param {Function} func */
38 filter(func) {

Callers 2

table_test.jsFile · 0.80
ui_test.jsFile · 0.80

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected