docs: document channel plugin tests · openclaw/openclaw@fa46138
steipete
·
2026-06-05
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Account action gate tests cover channel account action visibility and enablement checks. |
1 | 2 | import { describe, expect, it } from "vitest"; |
2 | 3 | import { createAccountActionGate } from "./account-action-gate.js"; |
3 | 4 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Account helper tests cover channel account normalization and lookup helpers. |
1 | 2 | import { describe, expect, it } from "vitest"; |
2 | 3 | import type { OpenClawConfig } from "../../config/config.js"; |
3 | 4 | import { normalizeAccountId } from "../../routing/session-key.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// ACP binding tests cover channel plugin ACP target binding and stateful driver behavior. |
1 | 2 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
2 | 3 | import { buildConfiguredAcpSessionKey } from "../../acp/persistent-bindings.types.js"; |
3 | 4 | import { ensureConfiguredBindingBuiltinsRegistered } from "./configured-binding-builtins.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// ACP stateful target driver tests cover ACP target state persistence and routing. |
1 | 2 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
2 | 3 | |
3 | 4 | const resetMocks = vi.hoisted(() => ({ |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Approval tests cover channel plugin approval request formatting and dispatch. |
1 | 2 | import { describe, expect, it, vi } from "vitest"; |
2 | 3 | import { resolveChannelApprovalAdapter, resolveChannelApprovalCapability } from "./approvals.js"; |
3 | 4 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Binding routing tests cover channel binding selection and message routing behavior. |
1 | 2 | import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; |
2 | 3 | import { |
3 | 4 | testing, |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Binding target tests cover channel binding target extraction and validation. |
1 | 2 | import { afterEach, describe, expect, it, vi } from "vitest"; |
2 | 3 | import { |
3 | 4 | ensureConfiguredBindingTargetReady, |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Bundled load error tests cover diagnostics when bundled channel plugins fail to load. |
1 | 2 | import { describe, it, expect } from "vitest"; |
2 | 3 | import { describeBundledChannelLoadError } from "./bundled.js"; |
3 | 4 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Bundled root cache tests cover cached bundled channel root resolution. |
1 | 2 | import fs from "node:fs"; |
2 | 3 | import os from "node:os"; |
3 | 4 | import path from "node:path"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Bundled shape guard tests cover bundled channel package metadata and export shape. |
1 | 2 | import { spawnSync } from "node:child_process"; |
2 | 3 | import fs from "node:fs"; |
3 | 4 | import os from "node:os"; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。