{"uid":"cap_2jYIsnGiv_O-KyOrHQvRO","slug":"the-stall-code-test-detector-07831e72","name":"The Stall — Code Test Detector","description":"Detects testing frameworks and test coverage presence in a code snippet or GitHub repository. For code snippets: identifies test functions, assertions, mocks, fixtures, and frameworks (Jest, pytest, go test, JUnit, RSpec, etc.). For GitHub repos: counts test files vs source files, surfaces config files, and gives a coverage verdict. No code execution — pure static analysis.","url":"https://the-stall.intuitek.ai/cap/code-test-detector","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":null,"example":{"request":{"code":"function testExample() {\n  return 'test';\n}"},"response":{"mode":"code","verdict":"NO_TESTS_DETECTED","analysis":{"verdict":"NO_TESTS_DETECTED","has_mocks":false,"line_count":3,"has_fixtures":false,"assertion_count":0,"has_test_file_name":null,"frameworks_detected":[],"test_function_count":0,"test_function_samples":[]},"generated_at":"2026-06-18T06:25:24.586Z"}},"exampleRequest":{"code":"function testExample() {\n  return 'test';\n}"},"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.16","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.16","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__8UCAY7ziDnbBOVUiNOWS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.16","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes code or text properties to detect whether content was written as a test, stub, placeholder, or boilerplate rather than production code","exampleAgentPrompt":"Can you check whether this code snippet is a test stub or placeholder rather than real production code? Here are the properties: it's a short function with hardcoded return values and no real logic.","exampleUseCases":null,"resultDescription":"Returns a classification indicating whether the submitted code or code properties represent a test, stub, placeholder, or boilerplate — likely including a label and confidence signal indicating production vs. test status.","failureModes":["Empty or missing properties field returns error","Malformed input schema causes 400-level response","Ambiguous code properties may yield low-confidence classification","Payment failure on Base mainnet results in 402 response and no data returned","Service unavailability returns 5xx error"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call (no API key) classifier to determine if a code snippet or set of code properties represents test/stub/boilerplate versus real production code — especially useful in automated code review pipelines or submission validation workflows where you want to filter out test submissions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:56:10.514Z","isFirstParty":false}