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
TestMapRequestErrorPreservesCodex401ProviderMessage
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:253
Function
TestMapRequestErrorPreservesCodexAPIErrorMessage
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:229
Function
TestMapRequestErrorReadsAPIErrorResponseBodyWhenRawJSONMissing
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:294
Function
TestMaskAPIKey_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
Function
TestMaskSecret
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:242
Function
TestMergeVars
(t *testing.T)
internal/cli/workflow_test.go:262
Function
TestMissingVariableErrorHidesInnerValue
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
Function
TestModelBetasConfiguration
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:202
Function
TestModelPriority
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:86
Function
TestModelValidationLogic
(t *testing.T)
internal/plugins/ai/openai/openai_image_test.go:313
Function
TestModelsCache_DifferentURLDoesNotCollide
(t *testing.T)
internal/plugins/ai/openai/models_cache_test.go:76
Function
TestModelsCache_EmptyListNotCached
(t *testing.T)
internal/plugins/ai/openai/models_cache_test.go:53
Function
TestModelsCache_ExpiredMissesWithTTLButHitsWithoutAgeLimit
(t *testing.T)
internal/plugins/ai/openai/models_cache_test.go:63
Function
TestModelsCache_WriteThenReadFresh
(t *testing.T)
internal/plugins/ai/openai/models_cache_test.go:42
Function
TestMultipleExtensionsWithInput
TestMultipleExtensionsWithInput ensures multiple extension calls each using {{input}} get proper substitution.
internal/plugins/template/template_extension_multiple_test.go:11
Function
TestNeedsRawMode
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:587
Function
TestNeedsRawModeGPT6
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:32
Function
TestNeedsRawModeInheritsFromParent
(t *testing.T)
internal/plugins/ai/azure/azure_test.go:100
Function
TestNeedsRawModeInheritsFromParent
(t *testing.T)
internal/plugins/ai/azure_entra/azure_entra_test.go:78
Function
TestNestedInputInExtension
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
Function
TestNewClient
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:188
Function
TestNewClient
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:455
Function
TestNewClientInitialization
Test generated using Keploy
internal/plugins/ai/azure/azure_test.go:16
Function
TestNewClientInitialization
(t *testing.T)
internal/plugins/ai/azure_entra/azure_entra_test.go:8
Function
TestNewClient_CreatesAllSetupQuestions
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:19
Function
TestNewClient_DefaultInitialization
Test generated using Keploy
internal/plugins/ai/anthropic/anthropic_test.go:14
Function
TestNewClient_DeferredInit
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:48
Function
TestNewClient_SetupQuestionOrder
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:37
Function
TestNewCustomPatterns
(t *testing.T)
internal/tools/custom_patterns/custom_patterns_test.go:12
Function
TestNewNotificationManager
(t *testing.T)
internal/tools/notifications/notifications_test.go:9
Function
TestNewOllamaEngine_APIKeyWiring
(t *testing.T)
internal/server/ollama_test.go:370
Function
TestNewPluginRegistry_CodexTokenPersist
(t *testing.T)
internal/core/plugin_registry_test.go:292
Function
TestNewSpotify
(t *testing.T)
internal/tools/spotify/spotify_test.go:242
Function
TestNewVendorPluginBase
(t *testing.T)
internal/plugins/plugin_test.go:11
Function
TestNewVendorPluginBase_EnvPrefixWithDots
(t *testing.T)
internal/plugins/plugin_test.go:44
Function
TestNewVendorPluginBase_EnvPrefixWithSpaces
(t *testing.T)
internal/plugins/plugin_test.go:37
Function
TestNewVendorPluginBase_NilConfigure
(t *testing.T)
internal/plugins/plugin_test.go:29
Function
TestNewVendorsModels
(t *testing.T)
internal/plugins/ai/models_test.go:10
Function
TestNewYouTubeApiKeyOptional
(t *testing.T)
internal/tools/youtube/youtube_optional_test.go:5
Function
TestNoSystemPlugins
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
Function
TestNoopProvider
(t *testing.T)
internal/tools/notifications/notifications_test.go:105
Function
TestNormalizeLocale
(t *testing.T)
internal/i18n/locale_test.go:107
Function
TestNormalizeMessages
(t *testing.T)
internal/domain/domain_test.go:11
Function
TestNormalizeSemverLikeVersion
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:205
Function
TestNormalizeToBCP47
(t *testing.T)
internal/i18n/i18n_variants_test.go:9
Function
TestNotificationManagerIsAvailable
(t *testing.T)
internal/tools/notifications/notifications_test.go:19
Function
TestNotificationManagerSend
(t *testing.T)
internal/tools/notifications/notifications_test.go:24
Function
TestNotifySendProvider
(t *testing.T)
internal/tools/notifications/notifications_test.go:69
Function
TestOSAScriptProvider
(t *testing.T)
internal/tools/notifications/notifications_test.go:51
Function
TestOllamaChat_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
Function
TestOllamaChat_ForwardsAPIKeyToChat
(t *testing.T)
internal/server/ollama_test.go:404
Function
TestOllamaChat_JoinsManyMessages
With more than one message, the forwarded prompt must join all messages as "role:content\n" lines.
internal/server/ollama_test.go:632
Function
TestOllamaChat_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
Function
TestOllamaChat_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
Function
TestOllamaChat_NoKeyOmitsHeader
With no configured key, the forwarded request must not contain the header.
internal/server/ollama_test.go:535
Function
TestOllamaChat_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
Function
TestOllamaChat_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
Function
TestOllamaChat_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
Function
TestOllamaChat_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
Function
TestOllamaChat_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
Function
TestOllamaTags_ModifiedAtIsRFC3339
(t *testing.T)
internal/server/ollama_test.go:668
Function
TestOllamaWireFormat
(t *testing.T)
internal/plugins/ai/ollama/ollama_test.go:222
Function
TestOpenCodeProvidersConfigureSessionRouting
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
Function
TestOptionalCredentialConfiguration
(t *testing.T)
internal/tools/parallel/parallel_test.go:129
Function
TestOutputTokenCountIncludesThoughts
(t *testing.T)
internal/plugins/ai/geminicommon/geminicommon_test.go:24
Function
TestPRCommitEmailHandling
(t *testing.T)
cmd/generate_changelog/internal/github/email_test.go:8
Function
TestParseDeployments
(t *testing.T)
internal/plugins/ai/azurecommon/azurecommon_test.go:7
Function
TestParseFFmpegFrameTimes
(t *testing.T)
internal/tools/youtube/timestamp_test.go:66
Function
TestParseFFmpegFrameTimes_ShowinfoLinesOnly
(t *testing.T)
internal/tools/youtube/timestamp_test.go:82
Function
TestParseFileChanges
(t *testing.T)
internal/domain/file_manager_test.go:10
Function
TestParseGeminiThinking
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:339
Function
TestParseOllamaNumCtx
(t *testing.T)
internal/server/ollama_test.go:115
Function
TestParseSSEStreamLargeFrame
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
Function
TestParseSeconds
(t *testing.T)
internal/tools/youtube/youtube_test.go:8
Function
TestParseThinking_AdaptiveModelUsesAdaptivePlusEffort
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:341
Function
TestParseThinking_LegacyModelKeepsBudgetTokens
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:366
Function
TestParseThinking_NumericBudgetBucketsToEffortOnAdaptiveModel
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:421
Function
TestParseThinking_OffIsDisabledOnBothGenerations
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:382
Function
TestParseThinking_OffOnModelsThatRejectDisabledThinking
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:400
Function
TestParseTimestampToSeconds
(t *testing.T)
internal/tools/youtube/timestamp_test.go:10
Function
TestPatternsEntity_CustomPatterns
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:260
Function
TestPatternsEntity_CustomPatternsEmpty
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:443
Function
TestPatternsEntity_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
Function
TestPatternsEntity_Save
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:161
Function
TestPatternsEntity_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
Function
TestPatternsEntity_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
Function
TestPatternsHandler_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
Function
TestPatternsHandler_RejectsPathTraversalSave
(t *testing.T)
internal/server/path_traversal_test.go:137
Function
TestPatternsHandler_RejectsUnsafeNamesOnReadRoutes
(t *testing.T)
internal/server/path_traversal_test.go:203
Function
TestPluginBase_AddSetting_MarksSecretNamesSensitive
(t *testing.T)
internal/plugins/plugin_test.go:378
Function
TestPluginName
(t *testing.T)
internal/plugins/ai/azure_entra/azure_entra_test.go:27
Function
TestPopulateDBCleansUpTempDir
PopulateDB must create the temp directory lazily and remove it when done, even on failure.
internal/tools/patterns_loader_test.go:37
Function
TestPortugueseVariantDistinction
(t *testing.T)
internal/i18n/i18n_variants_test.go:123
Function
TestPortugueseVariantLoading
(t *testing.T)
internal/i18n/i18n_variants_test.go:92
Function
TestPowerShellProvider
(t *testing.T)
internal/tools/notifications/notifications_test.go:87
Function
TestPrintPattern
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:338
Function
TestPrintWithVendorMarksDefault
(t *testing.T)
internal/plugins/ai/models_test.go:38
Function
TestProcessIncomingPRs_FileAggregation
(t *testing.T)
cmd/generate_changelog/internal/changelog/processing_test.go:133
Function
TestProviderErrorMessageIsPreserved
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:234
Function
TestProviderIsAvailable
(t *testing.T)
internal/tools/notifications/notifications_test.go:118
← previous
next →
1,501–1,600 of 1,885, ranked by callers