MCPcopy Create free account

hub / github.com/danielmiessler/Fabric / functions

Functions1,442 in github.com/danielmiessler/Fabric

FunctionTestFetchModelsDirectly_OpenAIFormat
Ensures we can fetch models when a provider returns the standard OpenAI format
internal/plugins/ai/openai/openai_models_test.go:33
FunctionTestFetchModelsDirectly_ServesFreshCacheWithoutRequest
A fresh cache short-circuits before any network call.
internal/plugins/ai/openai/models_cache_test.go:89
FunctionTestFetchModelsDirectly_WritesCacheOnSuccess
A successful fetch is cached, so a later failure is served from cache.
internal/plugins/ai/openai/models_cache_test.go:143
FunctionTestFetchPlugin
(t *testing.T)
internal/plugins/template/fetch_test.go:9
FunctionTestFilePlugin
(t *testing.T)
internal/plugins/template/file_test.go:11
FunctionTestFileProcessing_ErrorHandling
(t *testing.T)
cmd/generate_changelog/internal/changelog/processing_test.go:194
FunctionTestFilterByVendorCaseInsensitive
(t *testing.T)
internal/plugins/ai/models_test.go:58
FunctionTestFilterConversationalModels
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:242
FunctionTestFilterConversationalModels_AllFiltered
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:271
FunctionTestFilterConversationalModels_EmptyInput
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:266
FunctionTestFindModelNameCaseInsensitive
(t *testing.T)
internal/plugins/ai/models_test.go:78
FunctionTestFindVendorsByModel
(t *testing.T)
internal/plugins/ai/models_test.go:29
FunctionTestFindVendorsByModelFirst
(t *testing.T)
internal/plugins/ai/models_test.go:20
FunctionTestFixedFileExtensionExecutor
(t *testing.T)
internal/plugins/template/extension_executor_test.go:201
FunctionTestFormatMetadataAsText_EpisodeMetadata
(t *testing.T)
internal/tools/spotify/spotify_test.go:142
FunctionTestFormatMetadataAsText_NilAndUnknownTypes
(t *testing.T)
internal/tools/spotify/spotify_test.go:226
FunctionTestFormatMetadataAsText_SearchResult
(t *testing.T)
internal/tools/spotify/spotify_test.go:182
FunctionTestFormatMetadataAsText_ShowMetadata
(t *testing.T)
internal/tools/spotify/spotify_test.go:105
FunctionTestGenerateWAVFile
Test generateWAVFile method (basic test)
internal/plugins/ai/gemini/gemini_test.go:234
FunctionTestGetApplyVariables
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:97
FunctionTestGetApplyVariables_FromFile
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:254
FunctionTestGetChatter_ActivatesInactiveVendor
(t *testing.T)
internal/core/plugin_registry_test.go:243
FunctionTestGetChatter_AllowsExplicitCodexManualModel
(t *testing.T)
internal/core/plugin_registry_test.go:105
FunctionTestGetChatter_ParsesVendorModelPrefix
(t *testing.T)
internal/core/plugin_registry_test.go:159
FunctionTestGetChatter_RejectsExplicitCodexModelFromOtherVendor
(t *testing.T)
internal/core/plugin_registry_test.go:135
FunctionTestGetChatter_ReportsConfigureError
(t *testing.T)
internal/core/plugin_registry_test.go:219
FunctionTestGetChatter_VendorPrefixIgnoredWhenNotAVendor
(t *testing.T)
internal/core/plugin_registry_test.go:189
FunctionTestGetChatter_WarnsOnAmbiguousModel
(t *testing.T)
internal/core/plugin_registry_test.go:59
FunctionTestGetFromDB_AllowsDotsWithinName
A ".." in a name without separators is one safe path element. ValidateStorageName accepts it, and getFromDB also accepts it.
internal/plugins/db/fsdb/patterns_test.go:440
FunctionTestGetFromDB_PathTraversal
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:419
FunctionTestGetLocaleCandidates
(t *testing.T)
internal/i18n/i18n_variants_test.go:49
FunctionTestGetMaxTokens
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:306
FunctionTestGetOutputFormatFromExtension
(t *testing.T)
internal/plugins/ai/openai/openai_image_test.go:121
FunctionTestGetPreferredLocale
(t *testing.T)
internal/i18n/locale_test.go:187
FunctionTestGetShowOrEpisodeId
(t *testing.T)
internal/tools/spotify/spotify_test.go:8
FunctionTestGetWithoutVariables
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:150
FunctionTestHandleSetupAndServerCommands_ServeOllamaWiring
The --serveOllama path must pass the address, version, and API key flags through to ServeOllama unchanged.
internal/cli/setup_server_test.go:12
FunctionTestHashConsistency
TestHashConsistency ensures both hash functions produce same results for same content
internal/plugins/template/hash_test.go:93
FunctionTestHtmlReadability
(t *testing.T)
internal/tools/converter/html_readability_test.go:9
FunctionTestImageGenerationCompatibilityWarning
(t *testing.T)
internal/cli/chat_test.go:169
FunctionTestImageGenerationIntegrationScenarios
(t *testing.T)
internal/cli/chat_test.go:271
FunctionTestInit
(t *testing.T)
internal/cli/flags_test.go:15
FunctionTestInitWithYAMLConfig
(t *testing.T)
internal/cli/flags_test.go:116
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:66
FunctionTestIntegrationWithInit
(t *testing.T)
internal/i18n/locale_test.go:253
FunctionTestIntegration_FormatMetadataAsText
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:179
FunctionTestIntegration_GetEpisodeMetadata
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:74
FunctionTestIntegration_GetEpisodeMetadata_InvalidID
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:207
FunctionTestIntegration_GetShowEpisodes
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:122
FunctionTestIntegration_GetShowMetadata
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:47
FunctionTestIntegration_GetShowMetadata_InvalidID
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:197
FunctionTestIntegration_GrabMetadataForURL_Episode
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:159
FunctionTestIntegration_GrabMetadataForURL_Show
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:139
FunctionTestIntegration_SearchShows
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:101
FunctionTestIntegration_SearchShows_NoResults
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:217
FunctionTestInvalidStorageNameError_DefaultMessage
(t *testing.T)
internal/plugins/db/fsdb/storage_test.go:126
FunctionTestIsConfigured
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:558
FunctionTestIsConversationalModel
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:200
FunctionTestIsGeminiModel
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:282
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:210
FunctionTestIsValidAWSRegion
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:133
FunctionTestIsValidLocale
(t *testing.T)
internal/i18n/locale_test.go:152
FunctionTestJoinPromptSections
(t *testing.T)
internal/core/chatter_test.go:74
FunctionTestLevelFromInt
(t *testing.T)
internal/log/log_test.go:5
FunctionTestListModels
Test generated using Keploy
internal/plugins/ai/azure/azure_test.go:78
FunctionTestListModels
(t *testing.T)
internal/plugins/ai/azure_entra/azure_entra_test.go:47
FunctionTestListModelsDoesNotSendBearerForWhitespaceOnlyKey
(t *testing.T)
internal/plugins/ai/lmstudio/lmstudio_test.go:74
FunctionTestListModelsFiltersSupportedVisibleModels
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:157
FunctionTestListModelsUsesBearerTokenWhenConfigured
(t *testing.T)
internal/plugins/ai/lmstudio/lmstudio_test.go:14
FunctionTestListModelsWithoutInit
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:550
FunctionTestListModels_NilClient_NoApiKey_ReturnsError
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:215
FunctionTestListModels_NilClient_WithApiKey_ReturnsFallback
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:205
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:169
FunctionTestListPublisherModels_Pagination
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:129
FunctionTestListPublisherModels_Success
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:98
FunctionTestLoadImageBytes_DataURLSuccess
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:55
FunctionTestLoadImageBytes_DataURLValidationErrorsAreLocalized
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:21
FunctionTestLoadImageBytes_HTTPFetchErrorIsLocalized
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:36
FunctionTestLoadStrategy_EmptyName
(t *testing.T)
internal/plugins/strategy/strategy_test.go:36
FunctionTestLoadStrategy_InvalidJSON
(t *testing.T)
internal/plugins/strategy/strategy_test.go:123
FunctionTestLoadStrategy_NotFound
(t *testing.T)
internal/plugins/strategy/strategy_test.go:143
FunctionTestLoadStrategy_PathTraversal
(t *testing.T)
internal/plugins/strategy/strategy_test.go:46
FunctionTestLoadStrategy_ValidName
(t *testing.T)
internal/plugins/strategy/strategy_test.go:10
FunctionTestLoadStrategy_WithoutExtension
(t *testing.T)
internal/plugins/strategy/strategy_test.go:96
FunctionTestLooksLikePatternFilePath
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:451
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
FunctionTestMapRequestErrorPreservesCodexAPIErrorMessage
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:214
FunctionTestMapRequestErrorReadsAPIErrorResponseBodyWhenRawJSONMissing
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:238
FunctionTestMaskSecret
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:245
FunctionTestMiddlewareChatCompletionsRoute
(t *testing.T)
internal/plugins/ai/azure/azure_test.go:152
FunctionTestMiddlewareResponsesRoute
(t *testing.T)
internal/plugins/ai/azure/azure_test.go:127
FunctionTestModelBetasConfiguration
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:233
FunctionTestModelPriority
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:78
FunctionTestModelValidationLogic
(t *testing.T)
internal/plugins/ai/openai/openai_image_test.go:318
FunctionTestModelsCache_DifferentURLDoesNotCollide
(t *testing.T)
internal/plugins/ai/openai/models_cache_test.go:80
FunctionTestModelsCache_EmptyListNotCached
(t *testing.T)
internal/plugins/ai/openai/models_cache_test.go:57
FunctionTestModelsCache_ExpiredMissesWithTTLButHitsWithoutAgeLimit
(t *testing.T)
internal/plugins/ai/openai/models_cache_test.go:67
← previousnext →1,101–1,200 of 1,442, ranked by callers