MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / testService

Function testService

static/js/email_services.js:666–674  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

664
665// 测试服务
666async function testService(id) {
667 try {
668 const result = await api.post(`/email-services/${id}/test`);
669 if (result.success) toast.success('测试成功');
670 else toast.error('测试失败: ' + (result.error || '未知错误'));
671 } catch (error) {
672 toast.error('测试失败: ' + error.message);
673 }
674}
675
676// 删除服务
677async function deleteService(id, name) {

Callers

nothing calls this directly

Calls 3

successMethod · 0.80
errorMethod · 0.80
postMethod · 0.45

Tested by

no test coverage detected