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
TestBuildGenerateContentConfig_WithSearchAndLocation
(t *testing.T)
internal/plugins/ai/gemini/gemini_test.go:96
Function
TestBuildMessageParams_ThinkingShapeFollowsModel
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:444
Function
TestBuildMessageParams_UsesChatOptionsMaxTokens
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:112
Function
TestBuildMessageParams_UsesConfiguredMaxTokensByDefault
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:94
Function
TestBuildMessageParams_WithSearch
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:131
Function
TestBuildMessageParams_WithSearchAndLocation
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:168
Function
TestBuildMessageParams_WithoutSearch
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:73
Function
TestBuildModelNameFull
Test buildModelNameFull method
internal/plugins/ai/gemini/gemini_test.go:20
Function
TestBuildPromptChatRequest_PreservesStrategyAndUserInput
(t *testing.T)
internal/server/chat_test.go:24
Function
TestBuildResponseParams_DefaultProvider_Unchanged
TestBuildResponseParams_DefaultProvider_Unchanged guards backwards compatibility. A client that does not set the new override fields must continue emi
internal/plugins/ai/openai/openai_test.go:188
Function
TestBuildResponseParams_GrokAI_WithSearch
TestBuildResponseParams_GrokAI_WithSearch verifies that a client configured with a custom web search tool name and x_search enabled emits both tool en
internal/plugins/ai/openai/openai_test.go:157
Function
TestBuildResponseParams_GrokAI_WithoutSearch
TestBuildResponseParams_GrokAI_WithoutSearch confirms that a GrokAI style client without Search enabled does not append any tools. This protects the n
internal/plugins/ai/openai/openai_test.go:214
Function
TestBuildResponseParams_WebSearchToolsJSON
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:385
Function
TestBuildResponseParams_WithBothSearchAndImage
(t *testing.T)
internal/plugins/ai/openai/openai_image_test.go:82
Function
TestBuildResponseParams_WithImageGeneration
(t *testing.T)
internal/plugins/ai/openai/openai_image_test.go:55
Function
TestBuildResponseParams_WithSearch
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:108
Function
TestBuildResponseParams_WithSearchAndLocation
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:129
Function
TestBuildResponseParams_WithoutSearch
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:89
Function
TestBuildResponseRequestNoMaxTokens
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:64
Function
TestBuildResponseRequestWithMaxTokens
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:38
Function
TestBuildVendorsMapGivesEmptyArrayForVendorWithoutModels
(t *testing.T)
internal/server/models_test.go:10
Function
TestBuildVendorsMapWithNoVendors
(t *testing.T)
internal/server/models_test.go:44
Function
TestCORSMiddleware
(t *testing.T)
internal/server/cors_test.go:12
Function
TestChatHandler_AcceptsBenignNames
A safe request must go through pre-validation. With the zero-value handler seam, a request that goes through causes a nil panic, and Recovery changes
internal/server/path_traversal_test.go:236
Function
TestChatHandler_RejectsUnsafeNames
(t *testing.T)
internal/server/path_traversal_test.go:166
Function
TestChatOptions_SessionIDExcludedFromJSON
SessionID is derived internally and must not leak into the REST API surface (ChatOptions is embedded in the server's JSON-bound request DTO).
internal/domain/domain_test.go:32
Function
TestChatter_BuildSession_EndsWithUserMessage
(t *testing.T)
internal/core/chatter_test.go:290
Function
TestChatter_BuildSession_InputHasVarsKeepsPluginTokens
TestChatter_BuildSession_InputHasVarsKeepsPluginTokens checks that with InputHasVars, BuildSession replaces the variables in the user input, but a plu
internal/core/chatter_test.go:336
Function
TestChatter_BuildSession_SeparatesSystemSections
(t *testing.T)
internal/core/chatter_test.go:209
Function
TestChatter_NeedsRawMode
(t *testing.T)
internal/core/chatter_test.go:79
Function
TestChatter_Send_CancelWithNoUpdateReaderReturns
(t *testing.T)
internal/core/chatter_test.go:627
Function
TestChatter_Send_ConcurrentSameSessionKeepsAllMessages
TestChatter_Send_ConcurrentSameSessionKeepsAllMessages sends many requests on one session name at the same time. Each request adds a user message and
internal/core/chatter_test.go:662
Function
TestChatter_Send_DryRunAppliesNoFileChanges
TestChatter_Send_DryRunAppliesNoFileChanges checks that a dry run of create_coding_feature does not write files. The dry run reply contains the patter
internal/core/chatter_test.go:740
Function
TestChatter_Send_DryRunLeavesSessionUnchanged
TestChatter_Send_DryRunLeavesSessionUnchanged checks that a dry run does not write a named session. The dry run reply is not a model reply. If the ses
internal/core/chatter_test.go:703
Function
TestChatter_Send_StreamingBufferStreamDoesNotPrint
(t *testing.T)
internal/core/chatter_test.go:515
Function
TestChatter_Send_StreamingErrorPropagation
(t *testing.T)
internal/core/chatter_test.go:356
Function
TestChatter_Send_StreamingErrorUpdateAndReturnDoesNotDeadlock
(t *testing.T)
internal/core/chatter_test.go:399
Function
TestChatter_Send_StreamingMetadataPropagation
(t *testing.T)
internal/core/chatter_test.go:556
Function
TestChatter_Send_StreamingSanitizesTerminalOutput
A streamed reply goes to the terminal with no OSC 52 sequence, and the session keeps the full text.
internal/core/chatter_test.go:779
Function
TestChatter_Send_StreamingSuccessfulAggregation
(t *testing.T)
internal/core/chatter_test.go:456
Function
TestChatter_Send_SuppressThink
(t *testing.T)
internal/core/chatter_test.go:165
Function
TestCheckImageGenerationCompatibility
(t *testing.T)
internal/plugins/ai/openai/openai_image_test.go:454
Function
TestCitationFormatting
(t *testing.T)
internal/plugins/ai/gemini/gemini_test.go:167
Function
TestCitationFormatting
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:211
Function
TestCitationFormatting
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:286
Function
TestCleanCORSOrigins
(t *testing.T)
internal/server/cors_test.go:72
Function
TestCli
(t *testing.T)
internal/cli/cli_test.go:12
Function
TestClientConfigure
Test generated using Keploy
internal/plugins/ai/azure/azure_test.go:33
Function
TestClientConfigureDefaultAPIVersion
(t *testing.T)
internal/plugins/ai/azure/azure_test.go:64
Function
TestClientListModels
Test generated using Keploy
internal/plugins/ai/anthropic/anthropic_test.go:35
Function
TestClient_ListModels_ReturnsCorrectModels
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:54
Function
TestCommand
(t *testing.T)
internal/plugins/ai/claudecode/claudecode_test.go:20
Function
TestCommandRejectsBadImage
A bad data: URL gives an error, so that a REST client knows that the image was not sent.
internal/plugins/ai/claudecode/claudecode_test.go:160
Function
TestCommandUsesNewWorkingFolder
The CLI runs in a new private folder, not in the Fabric working folder. Decoded images go into that folder, each in its own file.
internal/plugins/ai/claudecode/claudecode_test.go:136
Function
TestComputeHash
(t *testing.T)
internal/plugins/template/hash_test.go:9
Function
TestComputeStringHash
(t *testing.T)
internal/plugins/template/hash_test.go:58
Function
TestConfigurable_AddSetting
(t *testing.T)
internal/plugins/plugin_test.go:51
Function
TestConfigurable_Configure
(t *testing.T)
internal/plugins/plugin_test.go:64
Function
TestConfigurable_Setup
(t *testing.T)
internal/plugins/plugin_test.go:80
Function
TestConfigureAllBackendTypes
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:522
Function
TestConfigureDefaultsToBedrockBackend
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:507
Function
TestConfigureDoesNotCreateTempDir
Configure runs on every fabric invocation via the plugin registry. It must not create the patterns temp directory; only PopulateDB uses it.
internal/tools/patterns_loader_test.go:13
Function
TestConfigureInvalidBackend
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:550
Function
TestConfigureInvalidURL
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:854
Function
TestConfigureKeyHeader
The Claude API gets the key as "Authorization: Bearer". A custom base URL gets it as X-Api-Key only, because a proxy can read only that header.
internal/plugins/ai/anthropic/anthropic_sampling_test.go:120
Function
TestConfigureMissingBaseURL
(t *testing.T)
internal/plugins/ai/azure_entra/azure_entra_test.go:67
Function
TestConfigureRejectsPlaintextRemoteBaseURL
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:424
Function
TestConfigureRejectsPlaintextRemoteEnvBaseURL
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:431
Function
TestConfigureRejectsPlaintextRemoteOrigins
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:973
Function
TestConfigureRequiresGatewayURL
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:471
Function
TestConfigureRequiresHTTPS
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:482
Function
TestConfigureRequiresHTTPSForRemoteBaseURL
(t *testing.T)
internal/plugins/ai/exolab/exolab_test.go:19
Function
TestConfigureRequiresHTTPSForRemoteBaseURL
(t *testing.T)
internal/plugins/ai/openai_compatible/providers_config_test.go:252
Function
TestConfigureRequiresSubscriptionKey
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:496
Function
TestConfigureRoutesChatToDeployment
(t *testing.T)
internal/plugins/ai/azure/azure_test.go:129
Function
TestConfigureVendorsReportsConfiguredFailures
(t *testing.T)
internal/core/vendor_configuration_warning_test.go:14
Function
TestConfigure_BearerTokenPriority
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:110
Function
TestConfigure_EmptyRegion_ReturnsError
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:55
Function
TestConfigure_InvalidRegion_ReturnsError
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:63
Function
TestConfigure_ValidRegion_BearerToken
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:71
Function
TestConfigure_ValidRegion_DefaultChain
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:98
Function
TestConfigure_ValidRegion_StaticCredentials
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:84
Function
TestConstructRequest_ExactOutput
(t *testing.T)
internal/plugins/ai/dryrun/dryrun_test.go:59
Function
TestContexts_GetContext
(t *testing.T)
internal/plugins/db/fsdb/contexts_test.go:9
Function
TestConvertMessagesRoles
Test convertMessages handles role mapping correctly
internal/plugins/ai/gemini/gemini_test.go:193
Function
TestConvertSkipsImagePartWithNoURL
TestConvertSkipsImagePartWithNoURL checks that an image part with no image_url does not stop the converters with a nil pointer.
internal/plugins/ai/openai/message_conversion_test.go:11
Function
TestCopyFile_CopiesRegular
TestCopyFile_CopiesRegular checks that copyFile still copies a regular file.
internal/tools/githelper/githelper_test.go:34
Function
TestCopyFile_RefusesSymlink
TestCopyFile_RefusesSymlink checks that copyFile does not follow a symlink.
internal/tools/githelper/githelper_test.go:12
Function
TestCopyToClipboard
(t *testing.T)
internal/cli/output_test.go:8
Function
TestCreateClient
(t *testing.T)
internal/plugins/ai/openai_compatible/providers_config_test.go:24
Function
TestCreateOutputFile
(t *testing.T)
internal/cli/output_test.go:18
Function
TestCreateOutputFileMessageWithTrailingNewline
(t *testing.T)
internal/cli/output_test.go:40
Function
TestCustomPatterns_Configure
(t *testing.T)
internal/tools/custom_patterns/custom_patterns_test.go:20
Function
TestCustomPatterns_ConfigureWithTempDir
(t *testing.T)
internal/tools/custom_patterns/custom_patterns_test.go:39
Function
TestCustomPatterns_IsConfigured
(t *testing.T)
internal/tools/custom_patterns/custom_patterns_test.go:60
Function
TestCyclicVariablesStayLiteral
TestCyclicVariablesStayLiteral checks variable values that contain a variable token, for example a={{a}}. The engine does not scan a value again. Thus
internal/plugins/template/template_test.go:200
Function
TestDateTimePlugin
(t *testing.T)
internal/plugins/template/datetime_test.go:11
Function
TestDb_Configure
(t *testing.T)
internal/plugins/db/fsdb/db_test.go:13
Function
TestDb_ConfigureMakesExistingSessionsAndContextsPrivate
TestDb_ConfigureMakesExistingSessionsAndContextsPrivate checks that Configure removes the group and other bits that earlier versions left on session a
internal/plugins/db/fsdb/db_test.go:232
Function
TestDb_LoadEnvFile
(t *testing.T)
internal/plugins/db/fsdb/db_test.go:35
← previous
next →
1,201–1,300 of 1,885, ranked by callers