MCPcopy Create free account

hub / github.com/danielmiessler/Fabric / functions

Functions1,885 in github.com/danielmiessler/Fabric

FunctionTestBuildGenerateContentConfig_WithSearchAndLocation
(t *testing.T)
internal/plugins/ai/gemini/gemini_test.go:96
FunctionTestBuildMessageParams_ThinkingShapeFollowsModel
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:444
FunctionTestBuildMessageParams_UsesChatOptionsMaxTokens
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:112
FunctionTestBuildMessageParams_UsesConfiguredMaxTokensByDefault
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:94
FunctionTestBuildMessageParams_WithSearch
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:131
FunctionTestBuildMessageParams_WithSearchAndLocation
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:168
FunctionTestBuildMessageParams_WithoutSearch
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:73
FunctionTestBuildModelNameFull
Test buildModelNameFull method
internal/plugins/ai/gemini/gemini_test.go:20
FunctionTestBuildPromptChatRequest_PreservesStrategyAndUserInput
(t *testing.T)
internal/server/chat_test.go:24
FunctionTestBuildResponseParams_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
FunctionTestBuildResponseParams_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
FunctionTestBuildResponseParams_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
FunctionTestBuildResponseParams_WebSearchToolsJSON
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:385
FunctionTestBuildResponseParams_WithBothSearchAndImage
(t *testing.T)
internal/plugins/ai/openai/openai_image_test.go:82
FunctionTestBuildResponseParams_WithImageGeneration
(t *testing.T)
internal/plugins/ai/openai/openai_image_test.go:55
FunctionTestBuildResponseParams_WithSearch
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:108
FunctionTestBuildResponseParams_WithSearchAndLocation
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:129
FunctionTestBuildResponseParams_WithoutSearch
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:89
FunctionTestBuildResponseRequestNoMaxTokens
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:64
FunctionTestBuildResponseRequestWithMaxTokens
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:38
FunctionTestBuildVendorsMapGivesEmptyArrayForVendorWithoutModels
(t *testing.T)
internal/server/models_test.go:10
FunctionTestBuildVendorsMapWithNoVendors
(t *testing.T)
internal/server/models_test.go:44
FunctionTestCORSMiddleware
(t *testing.T)
internal/server/cors_test.go:12
FunctionTestChatHandler_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
FunctionTestChatHandler_RejectsUnsafeNames
(t *testing.T)
internal/server/path_traversal_test.go:166
FunctionTestChatOptions_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
FunctionTestChatter_BuildSession_EndsWithUserMessage
(t *testing.T)
internal/core/chatter_test.go:290
FunctionTestChatter_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
FunctionTestChatter_BuildSession_SeparatesSystemSections
(t *testing.T)
internal/core/chatter_test.go:209
FunctionTestChatter_NeedsRawMode
(t *testing.T)
internal/core/chatter_test.go:79
FunctionTestChatter_Send_CancelWithNoUpdateReaderReturns
(t *testing.T)
internal/core/chatter_test.go:627
FunctionTestChatter_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
FunctionTestChatter_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
FunctionTestChatter_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
FunctionTestChatter_Send_StreamingBufferStreamDoesNotPrint
(t *testing.T)
internal/core/chatter_test.go:515
FunctionTestChatter_Send_StreamingErrorPropagation
(t *testing.T)
internal/core/chatter_test.go:356
FunctionTestChatter_Send_StreamingErrorUpdateAndReturnDoesNotDeadlock
(t *testing.T)
internal/core/chatter_test.go:399
FunctionTestChatter_Send_StreamingMetadataPropagation
(t *testing.T)
internal/core/chatter_test.go:556
FunctionTestChatter_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
FunctionTestChatter_Send_StreamingSuccessfulAggregation
(t *testing.T)
internal/core/chatter_test.go:456
FunctionTestChatter_Send_SuppressThink
(t *testing.T)
internal/core/chatter_test.go:165
FunctionTestCheckImageGenerationCompatibility
(t *testing.T)
internal/plugins/ai/openai/openai_image_test.go:454
FunctionTestCitationFormatting
(t *testing.T)
internal/plugins/ai/gemini/gemini_test.go:167
FunctionTestCitationFormatting
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:211
FunctionTestCitationFormatting
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:286
FunctionTestCleanCORSOrigins
(t *testing.T)
internal/server/cors_test.go:72
FunctionTestCli
(t *testing.T)
internal/cli/cli_test.go:12
FunctionTestClientConfigure
Test generated using Keploy
internal/plugins/ai/azure/azure_test.go:33
FunctionTestClientConfigureDefaultAPIVersion
(t *testing.T)
internal/plugins/ai/azure/azure_test.go:64
FunctionTestClientListModels
Test generated using Keploy
internal/plugins/ai/anthropic/anthropic_test.go:35
FunctionTestClient_ListModels_ReturnsCorrectModels
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:54
FunctionTestCommand
(t *testing.T)
internal/plugins/ai/claudecode/claudecode_test.go:20
FunctionTestCommandRejectsBadImage
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
FunctionTestCommandUsesNewWorkingFolder
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
FunctionTestComputeHash
(t *testing.T)
internal/plugins/template/hash_test.go:9
FunctionTestComputeStringHash
(t *testing.T)
internal/plugins/template/hash_test.go:58
FunctionTestConfigurable_AddSetting
(t *testing.T)
internal/plugins/plugin_test.go:51
FunctionTestConfigurable_Configure
(t *testing.T)
internal/plugins/plugin_test.go:64
FunctionTestConfigurable_Setup
(t *testing.T)
internal/plugins/plugin_test.go:80
FunctionTestConfigureAllBackendTypes
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:522
FunctionTestConfigureDefaultsToBedrockBackend
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:507
FunctionTestConfigureDoesNotCreateTempDir
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
FunctionTestConfigureInvalidBackend
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:550
FunctionTestConfigureInvalidURL
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:854
FunctionTestConfigureKeyHeader
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
FunctionTestConfigureMissingBaseURL
(t *testing.T)
internal/plugins/ai/azure_entra/azure_entra_test.go:67
FunctionTestConfigureRejectsPlaintextRemoteBaseURL
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:424
FunctionTestConfigureRejectsPlaintextRemoteEnvBaseURL
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:431
FunctionTestConfigureRejectsPlaintextRemoteOrigins
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:973
FunctionTestConfigureRequiresGatewayURL
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:471
FunctionTestConfigureRequiresHTTPS
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:482
FunctionTestConfigureRequiresHTTPSForRemoteBaseURL
(t *testing.T)
internal/plugins/ai/exolab/exolab_test.go:19
FunctionTestConfigureRequiresHTTPSForRemoteBaseURL
(t *testing.T)
internal/plugins/ai/openai_compatible/providers_config_test.go:252
FunctionTestConfigureRequiresSubscriptionKey
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:496
FunctionTestConfigureRoutesChatToDeployment
(t *testing.T)
internal/plugins/ai/azure/azure_test.go:129
FunctionTestConfigureVendorsReportsConfiguredFailures
(t *testing.T)
internal/core/vendor_configuration_warning_test.go:14
FunctionTestConfigure_BearerTokenPriority
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:110
FunctionTestConfigure_EmptyRegion_ReturnsError
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:55
FunctionTestConfigure_InvalidRegion_ReturnsError
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:63
FunctionTestConfigure_ValidRegion_BearerToken
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:71
FunctionTestConfigure_ValidRegion_DefaultChain
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:98
FunctionTestConfigure_ValidRegion_StaticCredentials
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:84
FunctionTestConstructRequest_ExactOutput
(t *testing.T)
internal/plugins/ai/dryrun/dryrun_test.go:59
FunctionTestContexts_GetContext
(t *testing.T)
internal/plugins/db/fsdb/contexts_test.go:9
FunctionTestConvertMessagesRoles
Test convertMessages handles role mapping correctly
internal/plugins/ai/gemini/gemini_test.go:193
FunctionTestConvertSkipsImagePartWithNoURL
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
FunctionTestCopyFile_CopiesRegular
TestCopyFile_CopiesRegular checks that copyFile still copies a regular file.
internal/tools/githelper/githelper_test.go:34
FunctionTestCopyFile_RefusesSymlink
TestCopyFile_RefusesSymlink checks that copyFile does not follow a symlink.
internal/tools/githelper/githelper_test.go:12
FunctionTestCopyToClipboard
(t *testing.T)
internal/cli/output_test.go:8
FunctionTestCreateClient
(t *testing.T)
internal/plugins/ai/openai_compatible/providers_config_test.go:24
FunctionTestCreateOutputFile
(t *testing.T)
internal/cli/output_test.go:18
FunctionTestCreateOutputFileMessageWithTrailingNewline
(t *testing.T)
internal/cli/output_test.go:40
FunctionTestCustomPatterns_Configure
(t *testing.T)
internal/tools/custom_patterns/custom_patterns_test.go:20
FunctionTestCustomPatterns_ConfigureWithTempDir
(t *testing.T)
internal/tools/custom_patterns/custom_patterns_test.go:39
FunctionTestCustomPatterns_IsConfigured
(t *testing.T)
internal/tools/custom_patterns/custom_patterns_test.go:60
FunctionTestCyclicVariablesStayLiteral
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
FunctionTestDateTimePlugin
(t *testing.T)
internal/plugins/template/datetime_test.go:11
FunctionTestDb_Configure
(t *testing.T)
internal/plugins/db/fsdb/db_test.go:13
FunctionTestDb_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
FunctionTestDb_LoadEnvFile
(t *testing.T)
internal/plugins/db/fsdb/db_test.go:35
← previousnext →1,201–1,300 of 1,885, ranked by callers