MCPcopy Create free account

hub / github.com/danielmiessler/Fabric / functions

Functions1,885 in github.com/danielmiessler/Fabric

FunctionTestMapRequestErrorPreservesCodex401ProviderMessage
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:253
FunctionTestMapRequestErrorPreservesCodexAPIErrorMessage
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:229
FunctionTestMapRequestErrorReadsAPIErrorResponseBodyWhenRawJSONMissing
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:294
FunctionTestMaskAPIKey_HidesLengthAndCharacters
TestMaskAPIKey_HidesLengthAndCharacters makes sure that the mask does not show the key length or characters from the key, but shows that a key is set.
internal/server/mask_test.go:10
FunctionTestMaskSecret
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:242
FunctionTestMergeVars
(t *testing.T)
internal/cli/workflow_test.go:262
FunctionTestMissingVariableErrorHidesInnerValue
TestMissingVariableErrorHidesInnerValue checks that the error for a missing variable shows the template text, not the values of the inner tokens.
internal/plugins/template/template_single_pass_test.go:186
FunctionTestModelBetasConfiguration
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:202
FunctionTestModelPriority
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:86
FunctionTestModelValidationLogic
(t *testing.T)
internal/plugins/ai/openai/openai_image_test.go:313
FunctionTestModelsCache_DifferentURLDoesNotCollide
(t *testing.T)
internal/plugins/ai/openai/models_cache_test.go:76
FunctionTestModelsCache_EmptyListNotCached
(t *testing.T)
internal/plugins/ai/openai/models_cache_test.go:53
FunctionTestModelsCache_ExpiredMissesWithTTLButHitsWithoutAgeLimit
(t *testing.T)
internal/plugins/ai/openai/models_cache_test.go:63
FunctionTestModelsCache_WriteThenReadFresh
(t *testing.T)
internal/plugins/ai/openai/models_cache_test.go:42
FunctionTestMultipleExtensionsWithInput
TestMultipleExtensionsWithInput ensures multiple extension calls each using {{input}} get proper substitution.
internal/plugins/template/template_extension_multiple_test.go:11
FunctionTestNeedsRawMode
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:587
FunctionTestNeedsRawModeGPT6
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:32
FunctionTestNeedsRawModeInheritsFromParent
(t *testing.T)
internal/plugins/ai/azure/azure_test.go:100
FunctionTestNeedsRawModeInheritsFromParent
(t *testing.T)
internal/plugins/ai/azure_entra/azure_entra_test.go:78
FunctionTestNestedInputInExtension
TestNestedInputInExtension tests the original bug case: {{ext:name:op:{{input}}}} should pass the actual input, not the sentinel
internal/plugins/template/template_sentinel_test.go:221
FunctionTestNewClient
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:188
FunctionTestNewClient
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:455
FunctionTestNewClientInitialization
Test generated using Keploy
internal/plugins/ai/azure/azure_test.go:16
FunctionTestNewClientInitialization
(t *testing.T)
internal/plugins/ai/azure_entra/azure_entra_test.go:8
FunctionTestNewClient_CreatesAllSetupQuestions
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:19
FunctionTestNewClient_DefaultInitialization
Test generated using Keploy
internal/plugins/ai/anthropic/anthropic_test.go:14
FunctionTestNewClient_DeferredInit
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:48
FunctionTestNewClient_SetupQuestionOrder
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:37
FunctionTestNewCustomPatterns
(t *testing.T)
internal/tools/custom_patterns/custom_patterns_test.go:12
FunctionTestNewNotificationManager
(t *testing.T)
internal/tools/notifications/notifications_test.go:9
FunctionTestNewOllamaEngine_APIKeyWiring
(t *testing.T)
internal/server/ollama_test.go:370
FunctionTestNewPluginRegistry_CodexTokenPersist
(t *testing.T)
internal/core/plugin_registry_test.go:292
FunctionTestNewSpotify
(t *testing.T)
internal/tools/spotify/spotify_test.go:242
FunctionTestNewVendorPluginBase
(t *testing.T)
internal/plugins/plugin_test.go:11
FunctionTestNewVendorPluginBase_EnvPrefixWithDots
(t *testing.T)
internal/plugins/plugin_test.go:44
FunctionTestNewVendorPluginBase_EnvPrefixWithSpaces
(t *testing.T)
internal/plugins/plugin_test.go:37
FunctionTestNewVendorPluginBase_NilConfigure
(t *testing.T)
internal/plugins/plugin_test.go:29
FunctionTestNewVendorsModels
(t *testing.T)
internal/plugins/ai/models_test.go:10
FunctionTestNewYouTubeApiKeyOptional
(t *testing.T)
internal/tools/youtube/youtube_optional_test.go:5
FunctionTestNoSystemPlugins
TestNoSystemPlugins checks that ApplyTemplateNoSystemPlugins refuses each plugin that can read the host or the network, and each extension. The text a
internal/plugins/template/template_single_pass_test.go:111
FunctionTestNoopProvider
(t *testing.T)
internal/tools/notifications/notifications_test.go:105
FunctionTestNormalizeLocale
(t *testing.T)
internal/i18n/locale_test.go:107
FunctionTestNormalizeMessages
(t *testing.T)
internal/domain/domain_test.go:11
FunctionTestNormalizeSemverLikeVersion
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:205
FunctionTestNormalizeToBCP47
(t *testing.T)
internal/i18n/i18n_variants_test.go:9
FunctionTestNotificationManagerIsAvailable
(t *testing.T)
internal/tools/notifications/notifications_test.go:19
FunctionTestNotificationManagerSend
(t *testing.T)
internal/tools/notifications/notifications_test.go:24
FunctionTestNotifySendProvider
(t *testing.T)
internal/tools/notifications/notifications_test.go:69
FunctionTestOSAScriptProvider
(t *testing.T)
internal/tools/notifications/notifications_test.go:51
FunctionTestOllamaChat_DoesNotFollowUpstreamRedirect
An upstream redirect must show as an upstream error. The client must not go to the redirect target with the API key.
internal/server/ollama_test.go:454
FunctionTestOllamaChat_ForwardsAPIKeyToChat
(t *testing.T)
internal/server/ollama_test.go:404
FunctionTestOllamaChat_JoinsManyMessages
With more than one message, the forwarded prompt must join all messages as "role:content\n" lines.
internal/server/ollama_test.go:632
FunctionTestOllamaChat_LogsUpstreamErrorBodyOnOneLine
The body of an upstream error can hold line breaks and a lot of text. The log keeps it on one line and cuts it.
internal/server/log_values_test.go:74
FunctionTestOllamaChat_MalformedJSONIs400
Malformed client JSON is a client error. The answer is a 400 with a stable generic message, not a 500.
internal/server/ollama_test.go:488
FunctionTestOllamaChat_NoKeyOmitsHeader
With no configured key, the forwarded request must not contain the header.
internal/server/ollama_test.go:535
FunctionTestOllamaChat_ResponseLimit
Without stream, a response larger than MaxResponseBytes gets 502. With stream, the server does not keep the response, thus no limit applies.
internal/server/ollama_test.go:753
FunctionTestOllamaChat_Responses
TestOllamaChat_Responses checks the stream and non-stream replies for good, empty and bad upstream SSE bodies, and a bad num_ctx.
internal/server/ollama_test.go:698
FunctionTestOllamaChat_StreamUpstreamErrorEvent
In stream mode, an upstream error event must end the NDJSON stream with a done chunk that holds the prefixed error text.
internal/server/ollama_test.go:568
FunctionTestOllamaChat_StreamUpstreamNon2xxSetsNDJSONContentType
A non-2xx upstream status in stream mode must still set the NDJSON Content-Type, so the client parses the error chunk as NDJSON and not as whatever Go
internal/server/ollama_test.go:605
FunctionTestOllamaChat_UpstreamFailureHidesDetails
An upstream that is not available is a 500. The body must not contain the raw transport error, because that error shows the internal upstream URL.
internal/server/ollama_test.go:508
FunctionTestOllamaTags_ModifiedAtIsRFC3339
(t *testing.T)
internal/server/ollama_test.go:668
FunctionTestOllamaWireFormat
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:222
FunctionTestOpenCodeProvidersConfigureSessionRouting
Ensures both OpenCode providers carry the session-routing header and a client-specific User-Agent required by OpenCode Go/Zen.
internal/plugins/ai/openai_compatible/providers_config_test.go:223
FunctionTestOptionalCredentialConfiguration
(t *testing.T)
internal/tools/parallel/parallel_test.go:129
FunctionTestOutputTokenCountIncludesThoughts
(t *testing.T)
internal/plugins/ai/geminicommon/geminicommon_test.go:24
FunctionTestPRCommitEmailHandling
(t *testing.T)
cmd/generate_changelog/internal/github/email_test.go:8
FunctionTestParseDeployments
(t *testing.T)
internal/plugins/ai/azurecommon/azurecommon_test.go:7
FunctionTestParseFFmpegFrameTimes
(t *testing.T)
internal/tools/youtube/timestamp_test.go:66
FunctionTestParseFFmpegFrameTimes_ShowinfoLinesOnly
(t *testing.T)
internal/tools/youtube/timestamp_test.go:82
FunctionTestParseFileChanges
(t *testing.T)
internal/domain/file_manager_test.go:10
FunctionTestParseGeminiThinking
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:339
FunctionTestParseOllamaNumCtx
(t *testing.T)
internal/server/ollama_test.go:115
FunctionTestParseSSEStreamLargeFrame
Each Copilot SSE frame holds all the text so far on one "data:" line. A frame larger than the 64 KiB default scanner limit must not stop the stream.
internal/plugins/ai/copilot/copilot_test.go:18
FunctionTestParseSeconds
(t *testing.T)
internal/tools/youtube/youtube_test.go:8
FunctionTestParseThinking_AdaptiveModelUsesAdaptivePlusEffort
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:341
FunctionTestParseThinking_LegacyModelKeepsBudgetTokens
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:366
FunctionTestParseThinking_NumericBudgetBucketsToEffortOnAdaptiveModel
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:421
FunctionTestParseThinking_OffIsDisabledOnBothGenerations
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:382
FunctionTestParseThinking_OffOnModelsThatRejectDisabledThinking
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:400
FunctionTestParseTimestampToSeconds
(t *testing.T)
internal/tools/youtube/timestamp_test.go:10
FunctionTestPatternsEntity_CustomPatterns
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:260
FunctionTestPatternsEntity_CustomPatternsEmpty
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:443
FunctionTestPatternsEntity_RenameRejectsFilePathDestination
Rename must reject a file-path-like destination, the same as Save. The inherited StorageEntity.Rename accepts such a destination.
internal/plugins/db/fsdb/patterns_test.go:205
FunctionTestPatternsEntity_Save
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:161
FunctionTestPatternsEntity_SaveRejectsFilePathNames
Save must reject a name that loadPattern uses as a filesystem path, and that includes a traversal name. For such a name, GetApplyVariables reads from
internal/plugins/db/fsdb/patterns_test.go:182
FunctionTestPatternsEntity_SaveRejectsSymlinkEscape
Save must not write through a symlinked pattern directory or a symlinked pattern file that points outside the storage tree.
internal/plugins/db/fsdb/patterns_test.go:225
FunctionTestPatternsHandler_BackendErrorHidesPaths
A pattern backend failure must use the shared storageError mapping. That is a JSON envelope with the generic message, never the wrapped os.PathError.
internal/server/path_traversal_test.go:105
FunctionTestPatternsHandler_RejectsPathTraversalSave
(t *testing.T)
internal/server/path_traversal_test.go:137
FunctionTestPatternsHandler_RejectsUnsafeNamesOnReadRoutes
(t *testing.T)
internal/server/path_traversal_test.go:203
FunctionTestPluginBase_AddSetting_MarksSecretNamesSensitive
(t *testing.T)
internal/plugins/plugin_test.go:378
FunctionTestPluginName
(t *testing.T)
internal/plugins/ai/azure_entra/azure_entra_test.go:27
FunctionTestPopulateDBCleansUpTempDir
PopulateDB must create the temp directory lazily and remove it when done, even on failure.
internal/tools/patterns_loader_test.go:37
FunctionTestPortugueseVariantDistinction
(t *testing.T)
internal/i18n/i18n_variants_test.go:123
FunctionTestPortugueseVariantLoading
(t *testing.T)
internal/i18n/i18n_variants_test.go:92
FunctionTestPowerShellProvider
(t *testing.T)
internal/tools/notifications/notifications_test.go:87
FunctionTestPrintPattern
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:338
FunctionTestPrintWithVendorMarksDefault
(t *testing.T)
internal/plugins/ai/models_test.go:38
FunctionTestProcessIncomingPRs_FileAggregation
(t *testing.T)
cmd/generate_changelog/internal/changelog/processing_test.go:133
FunctionTestProviderErrorMessageIsPreserved
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:234
FunctionTestProviderIsAvailable
(t *testing.T)
internal/tools/notifications/notifications_test.go:118
← previousnext →1,501–1,600 of 1,885, ranked by callers