Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/remote/test/puppeteer/test/installation/src/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  util.ts   Sprache: JAVA

 

/**
 * @license
 * Copyright 2022 Google Inc.
 * SPDX-License-Identifier: Apache-2.0
 */


import type {ExecFileException, ExecFileOptions} from 'node:child_process';
import {execFile as nodeExecFile} from 'node:child_process';
import {readFile} from 'node:fs/promises';
import {join} from 'node:path';

import {ASSETS_DIR} from './constants.js';

interface ExecFileResult {
  stdout: string;
  stderr: string;
}

export const execFile = async (
  file: string,
  args: string[],
  options: ExecFileOptions,
): Promise<ExecFileResult> => {
  console.log(file, args);
  let resolve: (param: ExecFileResult) => void;
  let reject: (param: Error) => void;
  const promise = new Promise<{
    stdout: string;
    stderr: string;
  }>((res, rej) => {
    resolve = res;
    reject = rej;
  });
  nodeExecFile(
    file,
    args,
    options,
    (error: ExecFileException | null, stdout: string, stderr: string) => {
      console.log('stdout', stdout);
      console.log('stderr', stderr);
      if (error) {
        reject(error);
      }
      resolve({
        stdout,
        stderr,
      });
    },
  );

  return await promise;
};
export const readAsset = (...components: string[]): Promise<string> => {
  return readFile(join(ASSETS_DIR, ...components), 'utf8');
};

Messung V0.5 in Prozent
C=93 H=96 G=94

¤ Dauer der Verarbeitung: 0.9 Sekunden  (vorverarbeitet am  2026-10-12) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.