MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / requireNonEmpty

Function requireNonEmpty

src/commands/test.ts:911–915  ·  view source on GitHub ↗
(flagName: string, value: string)

Source from the content-addressed store, hash-verified

909}
910
911function requireNonEmpty(flagName: string, value: string): void {
912 if (typeof value !== 'string' || value.trim().length === 0) {
913 throw localValidationError(flagName, 'is required');
914 }
915}
916
917/**
918 * `test create` text-mode rendering. JSON-mode callers (the agent

Callers 6

runCreateFunction · 0.85
runPlanPutFunction · 0.85
runUpdateFunction · 0.85
runDeleteFunction · 0.85
runCreateFromPlanFunction · 0.85
runCodePutFunction · 0.85

Calls 1

localValidationErrorFunction · 0.70

Tested by

no test coverage detected