MCPcopy Create free account

hub / github.com/danielmiessler/Fabric / functions

Functions1,885 in github.com/danielmiessler/Fabric

FunctionTestGetModelsKeepsPartialAndEmptyCatalogs
TestGetModelsKeepsPartialAndEmptyCatalogs validates that one healthy vendor, also with no models, is a successful discovery.
internal/plugins/ai/vendors_test.go:91
FunctionTestGetOutputFormatFromExtension
(t *testing.T)
internal/plugins/ai/openai/openai_image_test.go:116
FunctionTestGetPreferredLocale
(t *testing.T)
internal/i18n/locale_test.go:180
FunctionTestGetShowOrEpisodeId
(t *testing.T)
internal/tools/spotify/spotify_test.go:8
FunctionTestGetWithoutVariables
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:145
FunctionTestGrabVisual_FrameTimeCountMismatchUsesIndex
(t *testing.T)
internal/tools/youtube/timestamp_test.go:159
FunctionTestGrabVisual_UsesFrameTimesFromFFmpeg
(t *testing.T)
internal/tools/youtube/timestamp_test.go:137
FunctionTestHandleChatProcessingNotificationKeepsResult
TestHandleChatProcessingNotificationKeepsResult checks that the notification does not change the result of the command. A failed notification is only
internal/cli/chat_test.go:192
FunctionTestHandleChatProcessingSanitizesOutput
TestHandleChatProcessingSanitizesOutput checks that the printed reply has no terminal control sequence.
internal/cli/chat_test.go:178
FunctionTestHandleChatRedactsProviderErrors
(t *testing.T)
internal/server/provider_error_test.go:44
FunctionTestHandleChat_InvalidStrategyEmitsErrorAndSkipsComplete
A strategy that does not exist makes Send fail before the stream starts. The client must get an error event and no complete event (#2100).
internal/server/chat_test.go:167
FunctionTestHandleChat_LogsLanguageWithoutLineBreaks
A client picks the language string. A line break in it must not start a line of its own in the server log.
internal/server/log_values_test.go:31
FunctionTestHandleChat_SessionWithNullMessage
A session file with a JSON null entry must not stop the server. The chat request must complete in the normal way.
internal/server/chat_test.go:227
FunctionTestHandlePromptExport
(t *testing.T)
internal/cli/prompt_export_test.go:108
FunctionTestHandleSetupAndServerCommands_ServeOllamaEnvFile
The flags are parsed before the .env file loads. Values from that file reach the server when the command line did not set them.
internal/cli/setup_server_test.go:51
FunctionTestHandleSetupAndServerCommands_ServeOllamaWiring
The --serveOllama path must pass the address, version, API key, and CORS origin flags through to ServeOllama unchanged, and must put the yt-dlp argume
internal/cli/setup_server_test.go:14
FunctionTestHandleWorkflowProcessingSanitizesOutput
TestHandleWorkflowProcessingSanitizesOutput checks that the printed result has no terminal control sequence, and that the output file keeps the full r
internal/cli/workflow_test.go:350
FunctionTestHashConsistency
TestHashConsistency ensures both hash functions produce same results for same content
internal/plugins/template/hash_test.go:91
FunctionTestHtmlReadability
(t *testing.T)
internal/tools/converter/html_readability_test.go:9
FunctionTestInit
(t *testing.T)
internal/cli/flags_test.go:16
FunctionTestInitPatternFromBinaryName
(t *testing.T)
internal/cli/flags_test.go:28
FunctionTestInitWithYAMLConfig
(t *testing.T)
internal/cli/flags_test.go:146
FunctionTestInsertVersionAtTop
(t *testing.T)
cmd/generate_changelog/internal/changelog/generator_test.go:62
FunctionTestInsertVersionAtTop_ImprovedRobustness
(t *testing.T)
cmd/generate_changelog/internal/changelog/processing_test.go:64
FunctionTestIntegrationWithInit
(t *testing.T)
internal/i18n/locale_test.go:243
FunctionTestIntegration_FormatMetadataAsText
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:169
FunctionTestIntegration_GetEpisodeMetadata
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:64
FunctionTestIntegration_GetEpisodeMetadata_InvalidID
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:196
FunctionTestIntegration_GetShowEpisodes
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:112
FunctionTestIntegration_GetShowMetadata
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:37
FunctionTestIntegration_GetShowMetadata_InvalidID
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:186
FunctionTestIntegration_GrabMetadataForURL_Episode
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:149
FunctionTestIntegration_GrabMetadataForURL_Show
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:129
FunctionTestIntegration_SearchShows
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:91
FunctionTestIntegration_SearchShows_NoResults
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:206
FunctionTestInvalidStorageNameError_DefaultMessage
(t *testing.T)
internal/plugins/db/fsdb/storage_test.go:165
FunctionTestIsChatRequestWithPrintPrompt
(t *testing.T)
internal/cli/flags_test.go:90
FunctionTestIsConfigured
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:570
FunctionTestIsConfiguredOptionalKey
(t *testing.T)
internal/plugins/ai/openai_compatible/providers_config_test.go:232
FunctionTestIsConfiguredRequiresApiKey
(t *testing.T)
internal/tools/searchapi/searchapi_test.go:77
FunctionTestIsConfiguredRequiresApiKey
(t *testing.T)
internal/tools/sofya/sofya_test.go:96
FunctionTestIsConfiguredRequiresApiKey
(t *testing.T)
internal/tools/serply/serply_test.go:51
FunctionTestIsConfiguredRequiresApiKey
(t *testing.T)
internal/tools/firecrawl/firecrawl_test.go:116
FunctionTestIsConversationalModel
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:204
FunctionTestIsGeminiModel
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:284
FunctionTestIsMergeCommit
(t *testing.T)
cmd/generate_changelog/internal/changelog/merge_detection_test.go:10
FunctionTestIsTTSModel
Test isTTSModel method
internal/plugins/ai/gemini/gemini_test.go:216
FunctionTestIsValidAWSRegion
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:126
FunctionTestIsValidLocale
(t *testing.T)
internal/i18n/locale_test.go:149
FunctionTestJSONRoutesRequireJSON
Each route that reads a JSON body must use requireJSON. A save route takes a raw body with any Content-Type.
internal/server/loopback_guard_test.go:162
FunctionTestJoinPromptSections
(t *testing.T)
internal/core/chatter_test.go:92
FunctionTestLevelFromInt
(t *testing.T)
internal/log/log_test.go:5
FunctionTestListModels
Test generated using Keploy
internal/plugins/ai/azure/azure_test.go:80
FunctionTestListModels
(t *testing.T)
internal/plugins/ai/azure_entra/azure_entra_test.go:47
FunctionTestListModelsControlPlaneHonorsContextCancellation
(t *testing.T)
internal/plugins/ai/digitalocean/digitalocean_test.go:21
FunctionTestListModelsDoesNotSendBearerForWhitespaceOnlyKey
(t *testing.T)
internal/plugins/ai/lmstudio/lmstudio_test.go:75
FunctionTestListModelsFiltersSupportedVisibleModels
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:169
FunctionTestListModelsHonorsContextCancellation
(t *testing.T)
internal/plugins/ai/lmstudio/lmstudio_test.go:165
FunctionTestListModelsHonorsContextCancellation
ListModels must stop waiting for the server once the caller's context is cancelled.
internal/plugins/ai/gemini/gemini_test.go:315
FunctionTestListModelsUsesBearerTokenWhenConfigured
(t *testing.T)
internal/plugins/ai/lmstudio/lmstudio_test.go:15
FunctionTestListModelsWithModelsURLHonorsContextCancellation
(t *testing.T)
internal/plugins/ai/openai_compatible/providers_config_test.go:265
FunctionTestListModelsWithoutInit
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:562
FunctionTestListModels_HonorsContextCancellation
Cancelling the caller's context must stop ListModels as well.
internal/plugins/ai/bedrock/bedrock_stream_test.go:153
FunctionTestListModels_NilClient_NoApiKey_ReturnsError
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:203
FunctionTestListModels_NilClient_WithApiKey_ReturnsFallback
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:194
FunctionTestListModels_ReturnsExpectedModel
Test generated using Keploy
internal/plugins/ai/dryrun/dryrun_test.go:13
FunctionTestListPublisherModels_ErrorResponse
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:174
FunctionTestListPublisherModels_Pagination
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:135
FunctionTestListPublisherModels_Success
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:106
FunctionTestLoadAllFiles_SkipsFileThatDoesNotLoad
TestLoadAllFiles_SkipsFileThatDoesNotLoad checks that a strategy file that does not load does not hide the strategies after it.
internal/plugins/strategy/strategy_test.go:186
FunctionTestLoadImageBytes_DataURLSuccess
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:139
FunctionTestLoadImageBytes_DataURLValidationErrorsAreLocalized
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:24
FunctionTestLoadImageBytes_HTTPFetchErrorIsLocalized
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:52
FunctionTestLoadImageBytes_RefusesLargeImage
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:124
FunctionTestLoadImageBytes_RefusesLoopbackAddress
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:72
FunctionTestLoadImageBytes_RefusesOtherSchemes
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:90
FunctionTestLoadImageBytes_SendsNoAPIKey
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:100
FunctionTestLoadStrategy_EmptyName
(t *testing.T)
internal/plugins/strategy/strategy_test.go:39
FunctionTestLoadStrategy_InvalidJSON
(t *testing.T)
internal/plugins/strategy/strategy_test.go:125
FunctionTestLoadStrategy_NameWithSeparatorFailsBeforeStat
(t *testing.T)
internal/plugins/strategy/strategy_test.go:160
FunctionTestLoadStrategy_NotFound
(t *testing.T)
internal/plugins/strategy/strategy_test.go:145
FunctionTestLoadStrategy_PathTraversal
(t *testing.T)
internal/plugins/strategy/strategy_test.go:49
FunctionTestLoadStrategy_ValidName
(t *testing.T)
internal/plugins/strategy/strategy_test.go:13
FunctionTestLoadStrategy_WithoutExtension
(t *testing.T)
internal/plugins/strategy/strategy_test.go:99
FunctionTestLoadWorkflowBadPath
(t *testing.T)
internal/cli/workflow_test.go:77
FunctionTestLoadWorkflowJSON
(t *testing.T)
internal/cli/workflow_test.go:63
FunctionTestLoadWorkflowMalformedYAML
(t *testing.T)
internal/cli/workflow_test.go:99
FunctionTestLoadWorkflowYAML
(t *testing.T)
internal/cli/workflow_test.go:34
FunctionTestLocaleKeyParity
TestLocaleKeyParity makes sure that each locale has all the keys in en.json. i18n.T panics for a key that the active locale does not have.
internal/i18n/i18n_test.go:46
FunctionTestLooksLikePatternFilePath
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:434
FunctionTestLoopbackGuard_Bypass
The guard lets a preflight and the Swagger documents through from any Host. It accepts the Host of a CORS origin, but only for that host.
internal/server/loopback_guard_test.go:105
FunctionTestLoopbackGuard_HostHeader
(t *testing.T)
internal/server/loopback_guard_test.go:23
FunctionTestLoopbackGuard_Origin
(t *testing.T)
internal/server/loopback_guard_test.go:50
FunctionTestLoopbackGuard_WebUIJSON
The web UI sends JSON. The guard accepts the web UI origin for a JSON request, because a browser must do a preflight to send it cross-origin.
internal/server/loopback_guard_test.go:90
FunctionTestMain
(m *testing.M)
internal/plugins/endpoint_test.go:12
FunctionTestMain
(m *testing.M)
internal/plugins/ai/exolab/exolab_test.go:11
FunctionTestMain
(m *testing.M)
internal/plugins/ai/openai/openai_test.go:24
FunctionTestMain
(m *testing.M)
internal/plugins/ai/openai_compatible/providers_config_test.go:16
FunctionTestMain
(m *testing.M)
internal/plugins/ai/codex/codex_test.go:29
FunctionTestMain
TestMain pins the locale to English so that i18n.T() assertions are deterministic regardless of the CI machine's system locale.
internal/plugins/ai/azureaigateway/azureaigateway_test.go:21
← previousnext →1,401–1,500 of 1,885, ranked by callers