• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

electron / fiddle / 12859787673

20 Jan 2025 02:27AM UTC coverage: 87.604%. Remained the same
12859787673

Pull #1671

github

web-flow
Merge 1c4b5f570 into a484bbd3f
Pull Request #1671: build(deps): bump dsanders11/project-actions from 1.4.0 to 1.5.0

982 of 1218 branches covered (80.62%)

Branch coverage included in aggregate %.

3767 of 4203 relevant lines covered (89.63%)

34.5 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

36.36
/src/main/utils/get-files.ts
1
import { MessageChannelMain } from 'electron';
7✔
2

3
import { FileTransformOperation, Files } from '../../interfaces';
4
import { IpcEvents } from '../../ipc-events';
7✔
5
import { ipcMainManager } from '../ipc';
7✔
6

7
/**
8
 * Gets file content from the renderer
9
 */
10
export function getFiles(
7✔
11
  window: Electron.BrowserWindow,
12
  transforms: Array<FileTransformOperation>,
13
): Promise<{ localPath?: string; files: Files }> {
14
  return new Promise((resolve) => {
×
15
    const { port1, port2 } = new MessageChannelMain();
×
16
    ipcMainManager.postMessage(
×
17
      IpcEvents.GET_FILES,
18
      { options: undefined, transforms },
19
      [port1],
20
      window.webContents,
21
    );
22
    port2.once('message', (event) => {
×
23
      resolve(event.data);
×
24
      port2.close();
×
25
    });
26
    port2.start();
×
27
  });
28
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc