docs: document root channel tests · openclaw/openclaw@c135624
steipete
·
2026-06-05
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Account snapshot field tests cover channel account snapshot serialization fields. |
1 | 2 | import { describe, expect, it } from "vitest"; |
2 | 3 | import { projectSafeChannelAccountSnapshotFields } from "./account-snapshot-fields.js"; |
3 | 4 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Ack reaction tests cover acknowledgement reaction behavior for inbound channel events. |
1 | 2 | import { describe, expect, it, vi } from "vitest"; |
2 | 3 | import { |
3 | 4 | createAckReactionHandle, |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Allow-from tests cover channel sender allowlist parsing and matching. |
1 | 2 | import { describe, expect, it } from "vitest"; |
2 | 3 | import { |
3 | 4 | firstDefined, |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Allowlist match tests cover channel sender matching across static and pattern allowlists. |
1 | 2 | import { describe, expect, it } from "vitest"; |
2 | 3 | import { |
3 | 4 | resolveAllowlistMatchByCandidates, |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Bundled channel catalog fail-soft tests cover catalog read failures and fallback behavior. |
1 | 2 | import { importFreshModule } from "openclaw/plugin-sdk/test-fixtures"; |
2 | 3 | import { afterEach, describe, expect, it, vi } from "vitest"; |
3 | 4 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Bundled channel catalog read tests cover catalog loading from bundled channel metadata. |
1 | 2 | import fs from "node:fs"; |
2 | 3 | import path from "node:path"; |
3 | 4 | import { afterEach, describe, expect, it, vi } from "vitest"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Channel config tests cover channel config normalization and account lookup behavior. |
1 | 2 | import { describe, expect, it } from "vitest"; |
2 | 3 | import type { MsgContext } from "../auto-reply/templating.js"; |
3 | 4 | import { typedCases } from "../test-utils/typed-cases.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Channels misc tests cover small channel helper contracts that do not need dedicated files. |
1 | 2 | import { describe, expect, it } from "vitest"; |
2 | 3 | import { normalizeChatType } from "./chat-type.js"; |
3 | 4 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Command gating tests cover channel command allow/deny decisions before agent dispatch. |
1 | 2 | import { describe, expect, it } from "vitest"; |
2 | 3 | import { |
3 | 4 | resolveCommandAuthorizedFromAuthorizers, |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Config presence tests cover channel config detection and missing-config diagnostics. |
1 | 2 | import fs from "node:fs"; |
2 | 3 | import os from "node:os"; |
3 | 4 | import path from "node:path"; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。