()
| 63 | }; |
| 64 | |
| 65 | const testPluginDir = (): {dir: string; generator: () => string} => { |
| 66 | const random = Math.random().toString(36).substring(2, 15); |
| 67 | const dirName = 'gotifyplugin_' + random; |
| 68 | const dir = path.join(testBuildPath, dirName); |
| 69 | if (!fs.existsSync(dir)) { |
| 70 | fs.mkdirSync(dir, {recursive: true, mode: 0o755}); |
| 71 | } |
| 72 | return { |
| 73 | dir, |
| 74 | generator: () => { |
| 75 | const randomFn = Math.random().toString(36).substring(2, 15); |
| 76 | return path.join(dir, randomFn + '.so'); |
| 77 | }, |
| 78 | }; |
| 79 | }; |
| 80 | |
| 81 | const testFilePath = (): string => { |
| 82 | const random = Math.random().toString(36).substring(2, 15); |
no outgoing calls
no test coverage detected
searching dependent graphs…