已發布的原始碼
下載原始碼 ZIP
CH-J Server Manager
瀏覽特定應用程式版本的目錄與檔案。
CH-J / Server Manager
377 個檔案
core-20261019T111616Z-160a00bfcddc
新增時間: · 建置時間:
1
"use strict";3
const test = require("node:test");4
const assert = require("node:assert/strict");5
const path = require("node:path");6
const { spawnSync } = require("node:child_process");8
const scenarios = ["metadata", "move-failure", "disk-full", "post-rename-disconnect", "conflict", "upload-incomplete",9
"target-symlink", "target-hardlink", "target-fifo", "workspace-symlink", "temporary-symlink", "metadata-failure",10
"concurrent-target-replacement", "cross-filesystem-strategy", "acl", "existing-temporary", "symlink-retarget", "directory-symlink",11
"no-space", "xattr-unsupported", "backup", "publish-existing-rename", "publish-new-rename", "publish-copy", "publish-conflict",12
"publish-verify", "publish-exists", "publish-retry", "stage-out", "file-ops", "trusted-xattr"];13
for (const scenario of scenarios) {14
test("Linux remote editor filesystem: " + scenario, { skip: process.platform !== "linux" ? "Requires Linux and Python 3; no remote SSH server configured." : false }, (t) => {15
const result = spawnSync("python3", [path.join(__dirname, "fixtures/remoteEditorLinux.py"),16
path.join(__dirname, "../src/main/files/remoteEditor.py"), scenario], { encoding: "utf8", timeout: 10000 });17
assert.ifError(result.error);18
if (result.status === 77) { t.skip(result.stdout.trim()); return; }19
assert.equal(result.status, 0, result.stderr + result.stdout);20
assert.equal(result.stdout.trim(), "ok");21
});22
}SHA-256
b05dab29d1cbf39f26ba2aa48053310e64ddb4e6e25bb14882f3bd7a5f242b8fCH-J Proprietary Software License 1.14 · 原始碼依 CH-J Proprietary Software License 1.14 提供。公開原始碼不會改變授權條款,也不會授予額外的權利。
壓縮檔 SHA-256
a9605c0870a223b6a8542bb0705edd51d8b04f3069582653417a8397fabcc09a