Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danielmiessler/Fabric
/ functions
Functions
1,885 in github.com/danielmiessler/Fabric
⨍
Functions
1,885
◇
Types & classes
270
Function
TestPublicError
(t *testing.T)
internal/server/provider_error_test.go:89
Function
TestPublicHTTPClientNilControl
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
Function
TestPublicHTTPClientRedirects
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
Function
TestPublicHTTPClientTimeout
TestPublicHTTPClientTimeout checks that the client stops a request to a slow server after the timeout.
internal/util/httpclient_test.go:91
Function
TestPublishersListComplete
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:198
Function
TestReadLine_LineEndings
(t *testing.T)
internal/plugins/plugin_test.go:318
Function
TestReadStdin
(t *testing.T)
internal/cli/flags_test.go:41
Function
TestRecordFirstStreamError_ChannelFull
(t *testing.T)
internal/core/chatter_test.go:155
Function
TestRecordFirstStreamError_NilError
(t *testing.T)
internal/core/chatter_test.go:145
Function
TestRecoveryDumpsRedactCredentials
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
Function
TestRegistryPersistence
(t *testing.T)
internal/plugins/template/extension_registry_test.go:9
Function
TestRenderPromptExport
(t *testing.T)
internal/cli/prompt_export_test.go:15
Function
TestRequestOptions_DisabledByDefault
Ensures providers that don't configure session/UA headers keep default behavior.
internal/plugins/ai/openai/request_options_test.go:17
Function
TestRequestOptions_EmptySessionOmitsHeader
An empty session ID drops the session header and keeps the User-Agent.
internal/plugins/ai/openai/request_options_test.go:54
Function
TestRequestOptions_SendsSessionAndUserAgent
Ensures a configured session header and User-Agent are attached to requests.
internal/plugins/ai/openai/request_options_test.go:23
Function
TestRequireAPIKeyForBind
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
Function
TestRequireJSON
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
Function
TestRequireSecureBaseURL
(t *testing.T)
internal/plugins/endpoint_test.go:20
Function
TestRequireSecureBaseURLAllowInsecureLAN
(t *testing.T)
internal/plugins/endpoint_test.go:60
Function
TestRequireSecureBaseURLErrorOmitsCredentials
(t *testing.T)
internal/plugins/endpoint_test.go:137
Function
TestResolveStepInputWithOverride
(t *testing.T)
internal/cli/workflow_test.go:218
Function
TestResponseTextFromContent_SkipsReasoning
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:230
Function
TestRunOAuthFlowCompletesWithCallback
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:71
Function
TestRunOAuthFlowIgnoresCallbackWithWrongState
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:855
Function
TestRunWorkflowInputHasVars
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
Function
TestSampling_KeptForOtherModels
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_sampling_test.go:82
Function
TestSampling_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
Function
TestSanitizeNotificationText
(t *testing.T)
internal/cli/chat_test.go:168
Function
TestSanitizeTerminalOutput
(t *testing.T)
internal/domain/terminal_test.go:5
Function
TestSaveEnvFile
(t *testing.T)
internal/core/plugin_registry_test.go:24
Function
TestScanDirectory
(t *testing.T)
cmd/code2context/code_test.go:75
Function
TestScanDirectory_SkipsSymlinks
TestScanDirectory_SkipsSymlinks checks that ScanDirectory does not follow a symlink to a file outside the project.
cmd/code2context/code_test.go:95
Function
TestScanFiles
(t *testing.T)
cmd/code2context/code_test.go:13
Function
TestScanFilesNonExistentFile
(t *testing.T)
cmd/code2context/code_test.go:68
Function
TestScanFilesSkipsDirectories
(t *testing.T)
cmd/code2context/code_test.go:46
Function
TestScanStreamJSONReturnsScanError
(t *testing.T)
internal/plugins/ai/claudecode/claudecode_test.go:66
Function
TestSearchErrorDiagnosticIsBounded
(t *testing.T)
internal/tools/keenable/keenable_test.go:179
Function
TestSearchErrorDiagnosticIsPrintable
(t *testing.T)
internal/tools/keenable/keenable_test.go:195
Function
TestSearchErrors
(t *testing.T)
internal/tools/parallel/parallel_test.go:75
Function
TestSearchFallsBackToDescription
(t *testing.T)
internal/tools/sofya/sofya_test.go:56
Function
TestSearchFallsBackToDescription
(t *testing.T)
internal/tools/firecrawl/firecrawl_test.go:64
Function
TestSearchLimitsResultsAndFields
(t *testing.T)
internal/tools/keenable/keenable_test.go:228
Function
TestSearchMCP
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
Function
TestSearchPreservesBodyReadFailures
(t *testing.T)
internal/tools/keenable/keenable_test.go:206
Function
TestSearchRejectsHTTPSToHTTPDowngrade
(t *testing.T)
internal/tools/keenable/keenable_test.go:119
Function
TestSearchRejectsRedirects
(t *testing.T)
internal/tools/keenable/keenable_test.go:97
Function
TestSearchResponseSizeBoundary
(t *testing.T)
internal/tools/keenable/keenable_test.go:146
Function
TestSearchReturnsAPIError
(t *testing.T)
internal/tools/keenable/keenable_test.go:86
Function
TestSearchReturnsAPIError
(t *testing.T)
internal/tools/searchapi/searchapi_test.go:48
Function
TestSearchReturnsAPIError
(t *testing.T)
internal/tools/sofya/sofya_test.go:69
Function
TestSearchReturnsAPIError
(t *testing.T)
internal/tools/serply/serply_test.go:33
Function
TestSearchReturnsAPIError
(t *testing.T)
internal/tools/firecrawl/firecrawl_test.go:77
Function
TestSearchReturnsEmptyForNoResults
(t *testing.T)
internal/tools/searchapi/searchapi_test.go:63
Function
TestSearchReturnsEmptyWhenNoResults
(t *testing.T)
internal/tools/sofya/sofya_test.go:83
Function
TestSearchReturnsEmptyWhenNoResults
(t *testing.T)
internal/tools/firecrawl/firecrawl_test.go:103
Function
TestSearchReturnsErrorWhenNotSuccessful
(t *testing.T)
internal/tools/firecrawl/firecrawl_test.go:91
Function
TestSearchSendsKeyAndFormatsResults
(t *testing.T)
internal/tools/searchapi/searchapi_test.go:21
Function
TestSearchSendsKeyAndFormatsResults
(t *testing.T)
internal/tools/serply/serply_test.go:11
Function
TestSearchSendsRequestAndFormatsResults
(t *testing.T)
internal/tools/sofya/sofya_test.go:22
Function
TestSearchSendsRequestAndFormatsResults
(t *testing.T)
internal/tools/firecrawl/firecrawl_test.go:22
Function
TestSearchToolPrecedenceAndOptIn
(t *testing.T)
internal/cli/tools_test.go:13
Function
TestSearchWithKeyUsesKeyedEndpoint
(t *testing.T)
internal/tools/keenable/keenable_test.go:74
Function
TestSearchWithoutKeyUsesPublicEndpoint
(t *testing.T)
internal/tools/keenable/keenable_test.go:48
Function
TestSecuredEngineIgnoresForwardedFor
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
Function
TestSecurityHeadersMiddleware_HandlerCacheControlWins
(t *testing.T)
internal/server/headers_test.go:58
Function
TestSendAuthenticationError
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:683
Function
TestSendBedrockIntegration
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:594
Function
TestSendBetaRetryKeepsSamplingParams
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
Function
TestSendClaudeSamplingUsesLegacyVertexVersion
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
Function
TestSendEndpointsUseBearerTokenWhenConfigured
(t *testing.T)
internal/plugins/ai/lmstudio/lmstudio_test.go:36
Function
TestSendErrorTruncation
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:646
Function
TestSendFallsBackToDeltaWhenCompletedResponseHasNoText
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:497
Function
TestSendIncludesSourcesFromAnnotatedResponse
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:434
Function
TestSendMalformedResponseJSON
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:780
Function
TestSendModelNotFoundError
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:715
Function
TestSendNetworkError
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:754
Function
TestSendNotification_MessageTruncation
(t *testing.T)
internal/cli/chat_test.go:134
Function
TestSendNotification_SecurityEscaping
(t *testing.T)
internal/cli/chat_test.go:15
Function
TestSendNotification_TitleGeneration
(t *testing.T)
internal/cli/chat_test.go:95
Function
TestSendRefreshesAfterUnauthorized
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:320
Function
TestSendResponses_WithWarningIntegration
(t *testing.T)
internal/plugins/ai/openai/openai_image_test.go:521
Function
TestSendReturnsErrorWhenTheAnswerIsStoppedBySafety
(t *testing.T)
internal/plugins/ai/gemini/gemini_stream_test.go:84
Function
TestSendReturnsTheAnswerOfANormalResponse
(t *testing.T)
internal/plugins/ai/gemini/gemini_stream_test.go:92
Function
TestSendSamplingParams
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_sampling_test.go:49
Function
TestSendStreamClaudeHonorsContextCancellation
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
Function
TestSendStreamClosesChannelAndMapsHTTPError
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:625
Function
TestSendStreamClosesChannelOnChatError
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:197
Function
TestSendStreamClosesChannelOnError
(t *testing.T)
internal/plugins/ai/lmstudio/lmstudio_test.go:95
Function
TestSendStreamFallback
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:868
Function
TestSendStreamHonorsContextCancellation
(t *testing.T)
internal/plugins/ai/lmstudio/lmstudio_test.go:146
Function
TestSendStreamHonorsContextCancellation
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
Function
TestSendStreamHonorsContextCancellation
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
Function
TestSendStreamHonorsContextCancellation
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
Function
TestSendStreamNormalAndMaxTokensStopsAreNotErrors
(t *testing.T)
internal/plugins/ai/gemini/gemini_stream_test.go:71
Function
TestSendStreamReadsCodexSSE
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:552
Function
TestSendStreamReportsUsage
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:938
Function
TestSendStreamResponsesCompletedStreamHasNoError
(t *testing.T)
internal/plugins/ai/openai/responses_stream_test.go:63
Function
TestSendStreamResponsesReturnsErrorWhenResponseFails
(t *testing.T)
internal/plugins/ai/openai/responses_stream_test.go:53
Function
TestSendStreamReturnsErrorWhenTheAnswerIsStoppedBySafety
(t *testing.T)
internal/plugins/ai/gemini/gemini_stream_test.go:60
Function
TestSendStreamReturnsErrorWhenThePromptIsBlocked
(t *testing.T)
internal/plugins/ai/gemini/gemini_stream_test.go:51
← previous
next →
1,601–1,700 of 1,885, ranked by callers