MCPcopy Create free account
hub / github.com/VemtoOrg/vemto2 / readOrCreateOutputFile

Method readOrCreateOutputFile

tests/base/TestHelper.js:338–343  ·  view source on GitHub ↗
(filePath, contentForCreation, forceCreate = false)

Source from the content-addressed store, hash-verified

336 }
337
338 readOrCreateOutputFile(filePath, contentForCreation, forceCreate = false) {
339 const currentTestsPath = this.getCurrentTestsPath() || __dirname
340
341 const fullPath = path.join(currentTestsPath, 'tests/output', filePath)
342 return this.readOrCreateFile(fullPath, contentForCreation, forceCreate)
343 }
344
345 readOrCreateFile(filePath, contentForCreation, forceCreate = false) {
346 TestHelper.latestFilePath = filePath

Calls 3

getCurrentTestsPathMethod · 0.95
readOrCreateFileMethod · 0.95
joinMethod · 0.80

Tested by

no test coverage detected