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
TestGetModelsKeepsPartialAndEmptyCatalogs
TestGetModelsKeepsPartialAndEmptyCatalogs validates that one healthy vendor, also with no models, is a successful discovery.
internal/plugins/ai/vendors_test.go:91
Function
TestGetOutputFormatFromExtension
(t *testing.T)
internal/plugins/ai/openai/openai_image_test.go:116
Function
TestGetPreferredLocale
(t *testing.T)
internal/i18n/locale_test.go:180
Function
TestGetShowOrEpisodeId
(t *testing.T)
internal/tools/spotify/spotify_test.go:8
Function
TestGetWithoutVariables
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:145
Function
TestGrabVisual_FrameTimeCountMismatchUsesIndex
(t *testing.T)
internal/tools/youtube/timestamp_test.go:159
Function
TestGrabVisual_UsesFrameTimesFromFFmpeg
(t *testing.T)
internal/tools/youtube/timestamp_test.go:137
Function
TestHandleChatProcessingNotificationKeepsResult
TestHandleChatProcessingNotificationKeepsResult checks that the notification does not change the result of the command. A failed notification is only
internal/cli/chat_test.go:192
Function
TestHandleChatProcessingSanitizesOutput
TestHandleChatProcessingSanitizesOutput checks that the printed reply has no terminal control sequence.
internal/cli/chat_test.go:178
Function
TestHandleChatRedactsProviderErrors
(t *testing.T)
internal/server/provider_error_test.go:44
Function
TestHandleChat_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
Function
TestHandleChat_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
Function
TestHandleChat_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
Function
TestHandlePromptExport
(t *testing.T)
internal/cli/prompt_export_test.go:108
Function
TestHandleSetupAndServerCommands_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
Function
TestHandleSetupAndServerCommands_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
Function
TestHandleWorkflowProcessingSanitizesOutput
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
Function
TestHashConsistency
TestHashConsistency ensures both hash functions produce same results for same content
internal/plugins/template/hash_test.go:91
Function
TestHtmlReadability
(t *testing.T)
internal/tools/converter/html_readability_test.go:9
Function
TestInit
(t *testing.T)
internal/cli/flags_test.go:16
Function
TestInitPatternFromBinaryName
(t *testing.T)
internal/cli/flags_test.go:28
Function
TestInitWithYAMLConfig
(t *testing.T)
internal/cli/flags_test.go:146
Function
TestInsertVersionAtTop
(t *testing.T)
cmd/generate_changelog/internal/changelog/generator_test.go:62
Function
TestInsertVersionAtTop_ImprovedRobustness
(t *testing.T)
cmd/generate_changelog/internal/changelog/processing_test.go:64
Function
TestIntegrationWithInit
(t *testing.T)
internal/i18n/locale_test.go:243
Function
TestIntegration_FormatMetadataAsText
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:169
Function
TestIntegration_GetEpisodeMetadata
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:64
Function
TestIntegration_GetEpisodeMetadata_InvalidID
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:196
Function
TestIntegration_GetShowEpisodes
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:112
Function
TestIntegration_GetShowMetadata
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:37
Function
TestIntegration_GetShowMetadata_InvalidID
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:186
Function
TestIntegration_GrabMetadataForURL_Episode
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:149
Function
TestIntegration_GrabMetadataForURL_Show
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:129
Function
TestIntegration_SearchShows
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:91
Function
TestIntegration_SearchShows_NoResults
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:206
Function
TestInvalidStorageNameError_DefaultMessage
(t *testing.T)
internal/plugins/db/fsdb/storage_test.go:165
Function
TestIsChatRequestWithPrintPrompt
(t *testing.T)
internal/cli/flags_test.go:90
Function
TestIsConfigured
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:570
Function
TestIsConfiguredOptionalKey
(t *testing.T)
internal/plugins/ai/openai_compatible/providers_config_test.go:232
Function
TestIsConfiguredRequiresApiKey
(t *testing.T)
internal/tools/searchapi/searchapi_test.go:77
Function
TestIsConfiguredRequiresApiKey
(t *testing.T)
internal/tools/sofya/sofya_test.go:96
Function
TestIsConfiguredRequiresApiKey
(t *testing.T)
internal/tools/serply/serply_test.go:51
Function
TestIsConfiguredRequiresApiKey
(t *testing.T)
internal/tools/firecrawl/firecrawl_test.go:116
Function
TestIsConversationalModel
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:204
Function
TestIsGeminiModel
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:284
Function
TestIsMergeCommit
(t *testing.T)
cmd/generate_changelog/internal/changelog/merge_detection_test.go:10
Function
TestIsTTSModel
Test isTTSModel method
internal/plugins/ai/gemini/gemini_test.go:216
Function
TestIsValidAWSRegion
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:126
Function
TestIsValidLocale
(t *testing.T)
internal/i18n/locale_test.go:149
Function
TestJSONRoutesRequireJSON
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
Function
TestJoinPromptSections
(t *testing.T)
internal/core/chatter_test.go:92
Function
TestLevelFromInt
(t *testing.T)
internal/log/log_test.go:5
Function
TestListModels
Test generated using Keploy
internal/plugins/ai/azure/azure_test.go:80
Function
TestListModels
(t *testing.T)
internal/plugins/ai/azure_entra/azure_entra_test.go:47
Function
TestListModelsControlPlaneHonorsContextCancellation
(t *testing.T)
internal/plugins/ai/digitalocean/digitalocean_test.go:21
Function
TestListModelsDoesNotSendBearerForWhitespaceOnlyKey
(t *testing.T)
internal/plugins/ai/lmstudio/lmstudio_test.go:75
Function
TestListModelsFiltersSupportedVisibleModels
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:169
Function
TestListModelsHonorsContextCancellation
(t *testing.T)
internal/plugins/ai/lmstudio/lmstudio_test.go:165
Function
TestListModelsHonorsContextCancellation
ListModels must stop waiting for the server once the caller's context is cancelled.
internal/plugins/ai/gemini/gemini_test.go:315
Function
TestListModelsUsesBearerTokenWhenConfigured
(t *testing.T)
internal/plugins/ai/lmstudio/lmstudio_test.go:15
Function
TestListModelsWithModelsURLHonorsContextCancellation
(t *testing.T)
internal/plugins/ai/openai_compatible/providers_config_test.go:265
Function
TestListModelsWithoutInit
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:562
Function
TestListModels_HonorsContextCancellation
Cancelling the caller's context must stop ListModels as well.
internal/plugins/ai/bedrock/bedrock_stream_test.go:153
Function
TestListModels_NilClient_NoApiKey_ReturnsError
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:203
Function
TestListModels_NilClient_WithApiKey_ReturnsFallback
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:194
Function
TestListModels_ReturnsExpectedModel
Test generated using Keploy
internal/plugins/ai/dryrun/dryrun_test.go:13
Function
TestListPublisherModels_ErrorResponse
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:174
Function
TestListPublisherModels_Pagination
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:135
Function
TestListPublisherModels_Success
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:106
Function
TestLoadAllFiles_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
Function
TestLoadImageBytes_DataURLSuccess
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:139
Function
TestLoadImageBytes_DataURLValidationErrorsAreLocalized
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:24
Function
TestLoadImageBytes_HTTPFetchErrorIsLocalized
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:52
Function
TestLoadImageBytes_RefusesLargeImage
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:124
Function
TestLoadImageBytes_RefusesLoopbackAddress
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:72
Function
TestLoadImageBytes_RefusesOtherSchemes
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:90
Function
TestLoadImageBytes_SendsNoAPIKey
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:100
Function
TestLoadStrategy_EmptyName
(t *testing.T)
internal/plugins/strategy/strategy_test.go:39
Function
TestLoadStrategy_InvalidJSON
(t *testing.T)
internal/plugins/strategy/strategy_test.go:125
Function
TestLoadStrategy_NameWithSeparatorFailsBeforeStat
(t *testing.T)
internal/plugins/strategy/strategy_test.go:160
Function
TestLoadStrategy_NotFound
(t *testing.T)
internal/plugins/strategy/strategy_test.go:145
Function
TestLoadStrategy_PathTraversal
(t *testing.T)
internal/plugins/strategy/strategy_test.go:49
Function
TestLoadStrategy_ValidName
(t *testing.T)
internal/plugins/strategy/strategy_test.go:13
Function
TestLoadStrategy_WithoutExtension
(t *testing.T)
internal/plugins/strategy/strategy_test.go:99
Function
TestLoadWorkflowBadPath
(t *testing.T)
internal/cli/workflow_test.go:77
Function
TestLoadWorkflowJSON
(t *testing.T)
internal/cli/workflow_test.go:63
Function
TestLoadWorkflowMalformedYAML
(t *testing.T)
internal/cli/workflow_test.go:99
Function
TestLoadWorkflowYAML
(t *testing.T)
internal/cli/workflow_test.go:34
Function
TestLocaleKeyParity
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
Function
TestLooksLikePatternFilePath
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:434
Function
TestLoopbackGuard_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
Function
TestLoopbackGuard_HostHeader
(t *testing.T)
internal/server/loopback_guard_test.go:23
Function
TestLoopbackGuard_Origin
(t *testing.T)
internal/server/loopback_guard_test.go:50
Function
TestLoopbackGuard_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
Function
TestMain
(m *testing.M)
internal/plugins/endpoint_test.go:12
Function
TestMain
(m *testing.M)
internal/plugins/ai/exolab/exolab_test.go:11
Function
TestMain
(m *testing.M)
internal/plugins/ai/openai/openai_test.go:24
Function
TestMain
(m *testing.M)
internal/plugins/ai/openai_compatible/providers_config_test.go:16
Function
TestMain
(m *testing.M)
internal/plugins/ai/codex/codex_test.go:29
Function
TestMain
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
← previous
next →
1,401–1,500 of 1,885, ranked by callers