test(runtime): bound JSON-RPC entry coverage

This commit is contained in:
Yichen Jiang
2026-08-10 21:46:04 +08:00
parent a63fe01ee4
commit 8d838fc71a
2 changed files with 3 additions and 2 deletions

View File

@@ -8,4 +8,5 @@
import { runJsonrpcAgent } from './runner.ts' import { runJsonrpcAgent } from './runner.ts'
/* v8 ignore next -- exercised through the built Python runtime carriers */
await runJsonrpcAgent(import.meta.url) await runJsonrpcAgent(import.meta.url)

View File

@@ -7,6 +7,7 @@
import { existsSync } from 'node:fs' import { existsSync } from 'node:fs'
import { boot, installFailLoud, loadEnv, resolveConfigPath } from '@deepseek-ai/dsh-app-boot' import { boot, installFailLoud, loadEnv, resolveConfigPath } from '@deepseek-ai/dsh-app-boot'
/* v8 ignore start -- composition over tested app-boot/jsonrpc and executable acceptance paths */
const NAME = 'dsh-jsonrpc-agent' const NAME = 'dsh-jsonrpc-agent'
/** /**
@@ -17,7 +18,6 @@ const NAME = 'dsh-jsonrpc-agent'
* to stdin and signal events. * to stdin and signal events.
*/ */
export async function runJsonrpcAgent(bareModuleBaseUrl?: string): Promise<void> { export async function runJsonrpcAgent(bareModuleBaseUrl?: string): Promise<void> {
/* v8 ignore start -- composition over tested app-boot/jsonrpc and executable acceptance paths */
installFailLoud(NAME) installFailLoud(NAME)
loadEnv(NAME) loadEnv(NAME)
@@ -51,5 +51,5 @@ export async function runJsonrpcAgent(bareModuleBaseUrl?: string): Promise<void>
process.stdin.on('end', () => { void disposeAndExit(0) }) process.stdin.on('end', () => { void disposeAndExit(0) })
process.on('SIGTERM', () => { void disposeAndExit(0) }) process.on('SIGTERM', () => { void disposeAndExit(0) })
process.on('SIGINT', () => { void disposeAndExit(130) }) process.on('SIGINT', () => { void disposeAndExit(130) })
/* v8 ignore stop */
} }
/* v8 ignore stop */