MCPcopy Create free account
hub / github.com/gotify/server / testPluginDir

Function testPluginDir

ui/src/tests/setup.ts:65–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63};
64
65const 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
81const testFilePath = (): string => {
82 const random = Math.random().toString(36).substring(2, 15);

Callers 1

newPluginDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…