Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/JAVA/Openclaw/src/cli/   (Openclaw AI Version 22©)  Datei vom 26.3.2026 mit Größe 801 B image not shown  

Quelle  update-cli.test-helpers.test.ts

  Sprache: JAVA
 

import path from "node:path";
import { describe, expect, it } from "vitest";
import { isOwningNpmCommand } from "./update-cli.test-helpers.js";

describe("isOwningNpmCommand", () => {
  it("accepts absolute npm binaries under the owning prefix", () => {
    const prefix = path.join(path.sep, "opt""homebrew");

    expect(isOwningNpmCommand(path.join(prefix, "bin""npm"), prefix)).toBe(true);
    expect(isOwningNpmCommand(path.join(prefix, "npm.cmd"), prefix)).toBe(true);
  });

  it("rejects plain npm and paths outside the owning prefix", () => {
    const prefix = path.join(path.sep, "opt""homebrew");

    expect(isOwningNpmCommand("npm", prefix)).toBe(false);
    expect(isOwningNpmCommand(path.join(path.sep, "usr""local""bin""npm"), prefix)).toBe(
      false,
    );
  });
});

Messung V0.5 in Prozent
C=100 H=100 G=100

¤ Dauer der Verarbeitung: 0.9 Sekunden  (vorverarbeitet am  2026-06-09) ¤

*© 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.