MCPcopy Create free account

hub / github.com/danielmiessler/Fabric / functions

Functions1,885 in github.com/danielmiessler/Fabric

FunctionTestPublicError
(t *testing.T)
internal/server/provider_error_test.go:89
FunctionTestPublicHTTPClientNilControl
TestPublicHTTPClientNilControl checks that a nil control refuses a loopback address, and that the error does not show the IP address.
internal/util/httpclient_test.go:116
FunctionTestPublicHTTPClientRedirects
TestPublicHTTPClientRedirects checks that the client refuses a redirect to a private address and a redirect to a scheme that is not http or https. It
internal/util/httpclient_test.go:57
FunctionTestPublicHTTPClientTimeout
TestPublicHTTPClientTimeout checks that the client stops a request to a slow server after the timeout.
internal/util/httpclient_test.go:91
FunctionTestPublishersListComplete
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:198
FunctionTestReadLine_LineEndings
(t *testing.T)
internal/plugins/plugin_test.go:318
FunctionTestReadStdin
(t *testing.T)
internal/cli/flags_test.go:41
FunctionTestRecordFirstStreamError_ChannelFull
(t *testing.T)
internal/core/chatter_test.go:155
FunctionTestRecordFirstStreamError_NilError
(t *testing.T)
internal/core/chatter_test.go:145
FunctionTestRecoveryDumpsRedactCredentials
TestRecoveryDumpsRedactCredentials checks the request dump that gin writes when a handler panics. The debug-mode panic dump and the broken-pipe dump b
internal/server/recovery_test.go:18
FunctionTestRegistryPersistence
(t *testing.T)
internal/plugins/template/extension_registry_test.go:9
FunctionTestRenderPromptExport
(t *testing.T)
internal/cli/prompt_export_test.go:15
FunctionTestRequestOptions_DisabledByDefault
Ensures providers that don't configure session/UA headers keep default behavior.
internal/plugins/ai/openai/request_options_test.go:17
FunctionTestRequestOptions_EmptySessionOmitsHeader
An empty session ID drops the session header and keeps the User-Agent.
internal/plugins/ai/openai/request_options_test.go:54
FunctionTestRequestOptions_SendsSessionAndUserAgent
Ensures a configured session header and User-Agent are attached to requests.
internal/plugins/ai/openai/request_options_test.go:23
FunctionTestRequireAPIKeyForBind
A non-loopback bind without an API key must fail closed before the server starts. A loopback bind operates without a key.
internal/server/path_traversal_test.go:258
FunctionTestRequireJSON
requireJSON accepts application/json with parameters and in any case. It rejects each other Content-Type and a request with no Content-Type.
internal/server/loopback_guard_test.go:135
FunctionTestRequireSecureBaseURL
(t *testing.T)
internal/plugins/endpoint_test.go:20
FunctionTestRequireSecureBaseURLAllowInsecureLAN
(t *testing.T)
internal/plugins/endpoint_test.go:60
FunctionTestRequireSecureBaseURLErrorOmitsCredentials
(t *testing.T)
internal/plugins/endpoint_test.go:137
FunctionTestResolveStepInputWithOverride
(t *testing.T)
internal/cli/workflow_test.go:218
FunctionTestResponseTextFromContent_SkipsReasoning
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:230
FunctionTestRunOAuthFlowCompletesWithCallback
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:71
FunctionTestRunOAuthFlowIgnoresCallbackWithWrongState
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:855
FunctionTestRunWorkflowInputHasVars
TestRunWorkflowInputHasVars checks that --input-has-vars replaces the variables in the user input and in a step input from the workflow file. The outp
internal/cli/workflow_test.go:316
FunctionTestSampling_KeptForOtherModels
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_sampling_test.go:82
FunctionTestSampling_OmittedForModelsThatRejectIt
Claude models that reject temperature fail the whole request with a 400 if it carries one.
internal/plugins/ai/bedrock/bedrock_sampling_test.go:73
FunctionTestSanitizeNotificationText
(t *testing.T)
internal/cli/chat_test.go:168
FunctionTestSanitizeTerminalOutput
(t *testing.T)
internal/domain/terminal_test.go:5
FunctionTestSaveEnvFile
(t *testing.T)
internal/core/plugin_registry_test.go:24
FunctionTestScanDirectory
(t *testing.T)
cmd/code2context/code_test.go:75
FunctionTestScanDirectory_SkipsSymlinks
TestScanDirectory_SkipsSymlinks checks that ScanDirectory does not follow a symlink to a file outside the project.
cmd/code2context/code_test.go:95
FunctionTestScanFiles
(t *testing.T)
cmd/code2context/code_test.go:13
FunctionTestScanFilesNonExistentFile
(t *testing.T)
cmd/code2context/code_test.go:68
FunctionTestScanFilesSkipsDirectories
(t *testing.T)
cmd/code2context/code_test.go:46
FunctionTestScanStreamJSONReturnsScanError
(t *testing.T)
internal/plugins/ai/claudecode/claudecode_test.go:66
FunctionTestSearchErrorDiagnosticIsBounded
(t *testing.T)
internal/tools/keenable/keenable_test.go:179
FunctionTestSearchErrorDiagnosticIsPrintable
(t *testing.T)
internal/tools/keenable/keenable_test.go:195
FunctionTestSearchErrors
(t *testing.T)
internal/tools/parallel/parallel_test.go:75
FunctionTestSearchFallsBackToDescription
(t *testing.T)
internal/tools/sofya/sofya_test.go:56
FunctionTestSearchFallsBackToDescription
(t *testing.T)
internal/tools/firecrawl/firecrawl_test.go:64
FunctionTestSearchLimitsResultsAndFields
(t *testing.T)
internal/tools/keenable/keenable_test.go:228
FunctionTestSearchMCP
Exercise the real SDK transport against a local MCP server, with both response encodings supported by Streamable HTTP. These are synthetic, not live r
internal/tools/parallel/parallel_test.go:20
FunctionTestSearchPreservesBodyReadFailures
(t *testing.T)
internal/tools/keenable/keenable_test.go:206
FunctionTestSearchRejectsHTTPSToHTTPDowngrade
(t *testing.T)
internal/tools/keenable/keenable_test.go:119
FunctionTestSearchRejectsRedirects
(t *testing.T)
internal/tools/keenable/keenable_test.go:97
FunctionTestSearchResponseSizeBoundary
(t *testing.T)
internal/tools/keenable/keenable_test.go:146
FunctionTestSearchReturnsAPIError
(t *testing.T)
internal/tools/keenable/keenable_test.go:86
FunctionTestSearchReturnsAPIError
(t *testing.T)
internal/tools/searchapi/searchapi_test.go:48
FunctionTestSearchReturnsAPIError
(t *testing.T)
internal/tools/sofya/sofya_test.go:69
FunctionTestSearchReturnsAPIError
(t *testing.T)
internal/tools/serply/serply_test.go:33
FunctionTestSearchReturnsAPIError
(t *testing.T)
internal/tools/firecrawl/firecrawl_test.go:77
FunctionTestSearchReturnsEmptyForNoResults
(t *testing.T)
internal/tools/searchapi/searchapi_test.go:63
FunctionTestSearchReturnsEmptyWhenNoResults
(t *testing.T)
internal/tools/sofya/sofya_test.go:83
FunctionTestSearchReturnsEmptyWhenNoResults
(t *testing.T)
internal/tools/firecrawl/firecrawl_test.go:103
FunctionTestSearchReturnsErrorWhenNotSuccessful
(t *testing.T)
internal/tools/firecrawl/firecrawl_test.go:91
FunctionTestSearchSendsKeyAndFormatsResults
(t *testing.T)
internal/tools/searchapi/searchapi_test.go:21
FunctionTestSearchSendsKeyAndFormatsResults
(t *testing.T)
internal/tools/serply/serply_test.go:11
FunctionTestSearchSendsRequestAndFormatsResults
(t *testing.T)
internal/tools/sofya/sofya_test.go:22
FunctionTestSearchSendsRequestAndFormatsResults
(t *testing.T)
internal/tools/firecrawl/firecrawl_test.go:22
FunctionTestSearchToolPrecedenceAndOptIn
(t *testing.T)
internal/cli/tools_test.go:13
FunctionTestSearchWithKeyUsesKeyedEndpoint
(t *testing.T)
internal/tools/keenable/keenable_test.go:74
FunctionTestSearchWithoutKeyUsesPublicEndpoint
(t *testing.T)
internal/tools/keenable/keenable_test.go:48
FunctionTestSecuredEngineIgnoresForwardedFor
TestSecuredEngineIgnoresForwardedFor checks that a client cannot set the IP address in the logs with the X-Forwarded-For header.
internal/server/serve_test.go:163
FunctionTestSecurityHeadersMiddleware_HandlerCacheControlWins
(t *testing.T)
internal/server/headers_test.go:58
FunctionTestSendAuthenticationError
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:683
FunctionTestSendBedrockIntegration
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:594
FunctionTestSendBetaRetryKeepsSamplingParams
When a request with a beta header fails, Send retries without the header. The retry must keep the sampling value and the legacy API version.
internal/plugins/ai/anthropic/anthropic_sampling_test.go:105
FunctionTestSendClaudeSamplingUsesLegacyVertexVersion
Vertex AI reads the API version from the body. A model that takes sampling values must get the Vertex AI name of the legacy version there, not the fir
internal/plugins/ai/vertexai/vertexai_test.go:497
FunctionTestSendEndpointsUseBearerTokenWhenConfigured
(t *testing.T)
internal/plugins/ai/lmstudio/lmstudio_test.go:36
FunctionTestSendErrorTruncation
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:646
FunctionTestSendFallsBackToDeltaWhenCompletedResponseHasNoText
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:497
FunctionTestSendIncludesSourcesFromAnnotatedResponse
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:434
FunctionTestSendMalformedResponseJSON
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:780
FunctionTestSendModelNotFoundError
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:715
FunctionTestSendNetworkError
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:754
FunctionTestSendNotification_MessageTruncation
(t *testing.T)
internal/cli/chat_test.go:134
FunctionTestSendNotification_SecurityEscaping
(t *testing.T)
internal/cli/chat_test.go:15
FunctionTestSendNotification_TitleGeneration
(t *testing.T)
internal/cli/chat_test.go:95
FunctionTestSendRefreshesAfterUnauthorized
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:320
FunctionTestSendResponses_WithWarningIntegration
(t *testing.T)
internal/plugins/ai/openai/openai_image_test.go:521
FunctionTestSendReturnsErrorWhenTheAnswerIsStoppedBySafety
(t *testing.T)
internal/plugins/ai/gemini/gemini_stream_test.go:84
FunctionTestSendReturnsTheAnswerOfANormalResponse
(t *testing.T)
internal/plugins/ai/gemini/gemini_stream_test.go:92
FunctionTestSendSamplingParams
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_sampling_test.go:49
FunctionTestSendStreamClaudeHonorsContextCancellation
Cancelling the caller's context must abort an in-flight Claude stream instead of letting it run to server completion.
internal/plugins/ai/vertexai/vertexai_test.go:448
FunctionTestSendStreamClosesChannelAndMapsHTTPError
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:625
FunctionTestSendStreamClosesChannelOnChatError
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:197
FunctionTestSendStreamClosesChannelOnError
(t *testing.T)
internal/plugins/ai/lmstudio/lmstudio_test.go:95
FunctionTestSendStreamFallback
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:868
FunctionTestSendStreamHonorsContextCancellation
(t *testing.T)
internal/plugins/ai/lmstudio/lmstudio_test.go:146
FunctionTestSendStreamHonorsContextCancellation
Cancelling the caller's context must abort an in-flight Gemini stream instead of letting it run to server completion.
internal/plugins/ai/gemini/gemini_test.go:275
FunctionTestSendStreamHonorsContextCancellation
TestSendStreamHonorsContextCancellation verifies that cancelling the caller's context aborts an in-flight Ollama generation, instead of running the st
internal/plugins/ai/ollama/ollama_test.go:155
FunctionTestSendStreamHonorsContextCancellation
Cancelling the caller's context must abort an in-flight Copilot stream instead of letting it run to server completion.
internal/plugins/ai/copilot/copilot_test.go:49
FunctionTestSendStreamNormalAndMaxTokensStopsAreNotErrors
(t *testing.T)
internal/plugins/ai/gemini/gemini_stream_test.go:71
FunctionTestSendStreamReadsCodexSSE
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:552
FunctionTestSendStreamReportsUsage
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:938
FunctionTestSendStreamResponsesCompletedStreamHasNoError
(t *testing.T)
internal/plugins/ai/openai/responses_stream_test.go:63
FunctionTestSendStreamResponsesReturnsErrorWhenResponseFails
(t *testing.T)
internal/plugins/ai/openai/responses_stream_test.go:53
FunctionTestSendStreamReturnsErrorWhenTheAnswerIsStoppedBySafety
(t *testing.T)
internal/plugins/ai/gemini/gemini_stream_test.go:60
FunctionTestSendStreamReturnsErrorWhenThePromptIsBlocked
(t *testing.T)
internal/plugins/ai/gemini/gemini_stream_test.go:51
← previousnext →1,601–1,700 of 1,885, ranked by callers