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

Function grepLines

lib/utils.js:214–229  ·  view source on GitHub ↗
(array, startString, endString)

Source from the content-addressed store, hash-verified

212
213export const test = {
214 grepLines(array, startString, endString) {
215 let startIndex = 0
216 let endIndex
217 array.every((elem, index) => {
218 if (elem === startString) {
219 startIndex = index
220 return true
221 }
222 if (elem === endString) {
223 endIndex = index
224 return false
225 }
226 return true
227 })
228 return array.slice(startIndex + 1, endIndex)
229 },
230
231 submittedData(dataFile) {
232 return function (key) {

Callers 2

session_test.jsFile · 0.85
within_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected