MCPcopy
hub / github.com/google-gemini/gemini-cli / assertModelHasOutput

Function assertModelHasOutput

packages/test-utils/src/test-rig.ts:113–117  ·  view source on GitHub ↗
(result: string)

Source from the content-addressed store, hash-verified

111
112// Helper to assert that the model returned some output
113export function assertModelHasOutput(result: string) {
114 if (!result || result.trim().length === 0) {
115 throw new Error('Expected LLM to return some output');
116 }
117}
118
119function contentExists(result: string, content: string | RegExp): boolean {
120 if (typeof content === 'string') {

Calls

no outgoing calls

Tested by

no test coverage detected