MCPcopy Create free account

hub / github.com/danielmiessler/Fabric / functions

Functions1,885 in github.com/danielmiessler/Fabric

FunctionTestSendStreamReturnsTheErrorOfAFailedResponse
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:912
FunctionTestSendStreamSkipsKeepAliveFrames
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:327
FunctionTestSendStreamStopsChildOnScanError
(t *testing.T)
internal/plugins/ai/claudecode/claudecode_test.go:75
FunctionTestSendStreamWithoutBackendInit
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:832
FunctionTestSendStream_EmitsUsageAfterMessageStop
The usage is in the Metadata event, which follows MessageStop, so it must still be read after the stop event.
internal/plugins/ai/bedrock/bedrock_stream_test.go:72
FunctionTestSendStream_HonorsContextCancellation
Cancelling the caller's context must stop SendStream instead of letting the request run on.
internal/plugins/ai/bedrock/bedrock_stream_test.go:125
FunctionTestSendStream_NilClient_ReturnsError
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:210
FunctionTestSendStream_ReturnsMidStreamError
An error in the middle of the stream must be returned, not reported as a finished answer.
internal/plugins/ai/bedrock/bedrock_stream_test.go:94
FunctionTestSendStream_ReturnsMidStreamError
An error event in the middle of a stream must come back as the error of SendStream, as it does for the other vendors, so that the command fails instea
internal/plugins/ai/anthropic/anthropic_stream_test.go:20
FunctionTestSendStream_SendsMessages
Test generated using Keploy
internal/plugins/ai/dryrun/dryrun_test.go:35
FunctionTestSendWithSpecialCharacters
(t *testing.T)
internal/tools/notifications/notifications_test.go:145
FunctionTestSendWithoutBackendInit
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:809
FunctionTestSend_NilClient_ReturnsError
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:221
FunctionTestSentinelInVariableProcessing
TestSentinelInVariableProcessing tests that the sentinel token is handled correctly in regular variable processing (not just extensions) Note: The sen
internal/plugins/template/template_sentinel_test.go:141
FunctionTestSentinelTokenReplacement
TestSentinelTokenReplacement tests the fix for the {{input}} sentinel token bug This test verifies that when {{input}} is used inside an extension cal
internal/plugins/template/template_sentinel_test.go:70
FunctionTestServeEngineMiddleware
TestServeEngineMiddleware checks the middleware chain that Serve installs. If a r.Use line goes out of newSecuredEngine, a case here fails.
internal/server/serve_test.go:18
FunctionTestServeEngineSecurityHeaders
Each response, including the ones that the API key or loopback checks reject, tells the browser not to sniff the content type and not to store the res
internal/server/headers_test.go:18
FunctionTestServeEngineSwaggerExemption
TestServeEngineSwaggerExemption checks that a server with an API key serves /swagger/ with no key, and that the exemption covers only that prefix.
internal/server/serve_test.go:59
FunctionTestServeEngineWithCORSOrigins
TestServeEngineWithCORSOrigins checks the CORS middleware and the loopback guard together, on a server with no API key.
internal/server/serve_test.go:80
FunctionTestServeFailsClosedOnNonLoopbackBind
Serve and ServeOllama must return the fail-closed error and must not start an unauthenticated server on a non-loopback bind. The registry is nil, and
internal/server/path_traversal_test.go:290
FunctionTestSession_NilMessageIsSkipped
A null entry in a session file loads as a nil message. The vendor messages, Append and String must skip it.
internal/plugins/db/fsdb/sessions_test.go:96
FunctionTestSession_StringSkipsImagePartWithNoURL
String must not stop on an image part with no image_url.
internal/plugins/db/fsdb/sessions_test.go:112
FunctionTestSessions_ConcurrentAppendKeepsAllMessages
TestSessions_ConcurrentAppendKeepsAllMessages runs many appends to one session at the same time. Each goroutine does the same steps as core.Chatter.Se
internal/plugins/db/fsdb/sessions_concurrent_test.go:16
FunctionTestSessions_GetOrCreateSession
(t *testing.T)
internal/plugins/db/fsdb/sessions_test.go:12
FunctionTestSessions_GetRejectsInvalidNames
Get must reject an invalid name and must not answer with a new empty session. GET /sessions/<bad-name> is then a 400, the same as for the other entiti
internal/plugins/db/fsdb/sessions_test.go:30
FunctionTestSessions_PrintSessionRemovesControlSequences
PrintSession must not write terminal control sequences from a stored reply.
internal/plugins/db/fsdb/sessions_test.go:58
FunctionTestSessions_SaveSession
(t *testing.T)
internal/plugins/db/fsdb/sessions_test.go:41
FunctionTestSessions_WritesWaitForLock
TestSessions_WritesWaitForLock checks that Save, Delete and Rename wait for the session lock, and that an invalid name adds no lock.
internal/plugins/db/fsdb/sessions_concurrent_test.go:66
FunctionTestSetting_Configure
(t *testing.T)
internal/plugins/plugin_test.go:107
FunctionTestSetting_FillEnvFileContent
(t *testing.T)
internal/plugins/plugin_test.go:118
FunctionTestSetting_IsValid
(t *testing.T)
internal/plugins/plugin_test.go:94
FunctionTestSetting_Print
(t *testing.T)
internal/plugins/plugin_test.go:130
FunctionTestSetting_Print_MasksSensitiveValue
(t *testing.T)
internal/plugins/plugin_test.go:371
FunctionTestSettings_Configure
(t *testing.T)
internal/plugins/plugin_test.go:254
FunctionTestSettings_FillEnvFileContent
(t *testing.T)
internal/plugins/plugin_test.go:265
FunctionTestSettings_IsConfigured
(t *testing.T)
internal/plugins/plugin_test.go:242
FunctionTestSetupModelChoices_NotEmpty
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:265
FunctionTestSetupQuestion_Ask
(t *testing.T)
internal/plugins/plugin_test.go:142
FunctionTestSetupQuestion_Ask_EmptyCarriageReturn
(t *testing.T)
internal/plugins/plugin_test.go:299
FunctionTestSetupQuestion_Ask_MasksSensitiveValue
(t *testing.T)
internal/plugins/plugin_test.go:354
FunctionTestSetupQuestion_Ask_Reset
(t *testing.T)
internal/plugins/plugin_test.go:159
FunctionTestSetupQuestion_OnAnswerWithReset
(t *testing.T)
internal/plugins/plugin_test.go:178
FunctionTestSetupRejectsPlaintextRemoteAuthOrigin
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:1002
FunctionTestSetup_ReturnsNil
Test generated using Keploy
internal/plugins/ai/dryrun/dryrun_test.go:26
FunctionTestShellEscape
TestShellEscape gives each value to "sh -c", as Execute does, and makes sure that the shell prints the value and does not run it.
internal/plugins/template/extension_executor_test.go:393
FunctionTestShouldIncludeRepeat
(t *testing.T)
internal/tools/youtube/timestamp_test.go:42
FunctionTestShouldUseImageGeneration
(t *testing.T)
internal/plugins/ai/openai/openai_image_test.go:17
FunctionTestSinglePassAuthoredNestedVariable
TestSinglePassAuthoredNestedVariable checks that nested tokens in the template text still work. The inner variable resolves first, and then the outer
internal/plugins/template/template_single_pass_test.go:98
FunctionTestSinglePassAuthoredTokenStillRuns
TestSinglePassAuthoredTokenStillRuns checks that a plugin token in the template text still runs. The single pass only stops the scan of values.
internal/plugins/template/template_single_pass_test.go:83
FunctionTestSinglePassValueAsFullBody
TestSinglePassValueAsFullBody checks that a token with only an inner token as its body does not resolve the inner value as a token.
internal/plugins/template/template_single_pass_test.go:166
FunctionTestSinglePassValueCannotCloseToken
TestSinglePassValueCannotCloseToken checks that a variable value in a nested token cannot close the outer token and start a second plugin call. For th
internal/plugins/template/template_single_pass_test.go:64
FunctionTestSinglePassValueNotReexpanded
TestSinglePassValueNotReexpanded checks that a plugin or extension token in a variable value stays as literal text, and that the plugin does not run.
internal/plugins/template/template_single_pass_test.go:14
FunctionTestSortModels
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:63
FunctionTestSplitOpenEscape
TestSplitOpenEscape checks that a sequence that two stream chunks divide does not show its bytes as text.
internal/domain/terminal_test.go:30
FunctionTestSpotify_HasCredentials
(t *testing.T)
internal/tools/spotify/spotify_test.go:278
FunctionTestSpotify_IsConfigured
(t *testing.T)
internal/tools/spotify/spotify_test.go:262
FunctionTestStorageHandler_GenericErrorHidesPaths
A non-validation failure stays a 500. Its body must not show the filesystem path that is in the wrapped *os.PathError.
internal/server/path_traversal_test.go:76
FunctionTestStorageHandler_RejectsTraversalOnAllRoutes
Each storage route that gets a name must reject a traversal name, not only DELETE. Most routes share storageError through the fsdb layer. The exists r
internal/server/path_traversal_test.go:21
FunctionTestStorageNewFolderIsPrivate
TestStorageNewFolderIsPrivate checks that Configure makes a folder that only the user can open.
internal/plugins/db/fsdb/storage_test.go:303
FunctionTestStorage_AllowsInternalAndDirSymlinks
Load and Save operate through a symlink that stays in the storage directory, and through a storage directory that is a symlink.
internal/plugins/db/fsdb/storage_test.go:264
FunctionTestStorage_Delete
(t *testing.T)
internal/plugins/db/fsdb/storage_test.go:82
FunctionTestStorage_Exists
(t *testing.T)
internal/plugins/db/fsdb/storage_test.go:67
FunctionTestStorage_RejectsPathTraversal
(t *testing.T)
internal/plugins/db/fsdb/storage_test.go:139
FunctionTestStorage_RejectsSymlinkEscape
(t *testing.T)
internal/plugins/db/fsdb/storage_test.go:232
FunctionTestStorage_Rename
(t *testing.T)
internal/plugins/db/fsdb/storage_test.go:175
FunctionTestStorage_RenameRejectsPathTraversal
(t *testing.T)
internal/plugins/db/fsdb/storage_test.go:196
FunctionTestStorage_SaveAndLoad
(t *testing.T)
internal/plugins/db/fsdb/storage_test.go:12
FunctionTestStorage_SaveKeepsFileMode
Save keeps the mode of an existing file. A new file gets the same mode as os.WriteFile with 0600 gives it, thus the umask applies.
internal/plugins/db/fsdb/storage_test.go:31
FunctionTestStripThinkBlocks
(t *testing.T)
internal/domain/think_test.go:5
FunctionTestStripThinkBlocksCustomTags
(t *testing.T)
internal/domain/think_test.go:13
FunctionTestSupportsImageGeneration
(t *testing.T)
internal/plugins/ai/openai/openai_image_test.go:222
FunctionTestSysPlugin
(t *testing.T)
internal/plugins/template/sys_test.go:12
FunctionTestTerminalNotifierProvider
(t *testing.T)
internal/tools/notifications/notifications_test.go:33
FunctionTestTextDelta
(t *testing.T)
internal/plugins/ai/claudecode/claudecode_test.go:107
FunctionTestTextPlugin
(t *testing.T)
internal/plugins/template/text_test.go:7
FunctionTestToMessages
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:292
FunctionTestToMessages_Empty
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:323
FunctionTestToMessages_MultiContentPDFAttachment
(t *testing.T)
internal/plugins/ai/anthropic/anthropic_test.go:300
FunctionTestToMessages_SkipsUnknownRoles
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:310
FunctionTestTranscribeFile_FileSizeLimitErrorIsLocalized
(t *testing.T)
internal/plugins/ai/openai/openai_audio_test.go:46
FunctionTestTranscribeFile_ValidationErrorsAreLocalized
(t *testing.T)
internal/plugins/ai/openai/openai_audio_test.go:15
FunctionTestTranslation
(t *testing.T)
internal/i18n/i18n_test.go:10
FunctionTestUnreportedSendError
(t *testing.T)
internal/server/chat_test.go:66
FunctionTestUnreportedSendErrorWithEmptyChannel
An empty channel must not block the response, which the client waits for.
internal/server/chat_test.go:129
FunctionTestUpdateConfig_KeepsOtherKeys
An update of one key keeps the keys that the config form does not know.
internal/server/configuration_test.go:37
FunctionTestUpdateConfig_RejectsLineBreakInValue
A value with a newline, a carriage return or a NUL gets 400, and the file does not change.
internal/server/configuration_test.go:69
FunctionTestUpdateConfig_SkipsBlankValue
A value of only spaces changes neither the .env file nor the process environment.
internal/server/configuration_test.go:99
FunctionTestValidate
(t *testing.T)
internal/cli/workflow_test.go:110
FunctionTestValidateImageFile
(t *testing.T)
internal/cli/flags_test.go:264
FunctionTestValidateImageParameters
(t *testing.T)
internal/cli/flags_test.go:350
FunctionTestValidatePromptExportFlags
(t *testing.T)
internal/cli/prompt_export_test.go:160
FunctionTestVendorsManager_GetModelsConcurrent
TestVendorsManager_GetModelsConcurrent calls GetModels from 8 goroutines at the same time. Run it with -race. Without modelsMu, the race detector find
internal/plugins/ai/vendors_race_test.go:37
FunctionTestVertexAIAuthHeader
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:328
FunctionTestVertexAIBuildEndpoint
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:319
FunctionTestVertexAIListModels
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:339
FunctionTestVertexAIParseResponse
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:435
FunctionTestVertexAIParseResponseNoCandidates
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:447
FunctionTestVertexAIPrepareRequestAssistantRole
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:406
FunctionTestVertexAIPrepareRequestSystemMessages
(t *testing.T)
internal/plugins/ai/azureaigateway/azureaigateway_test.go:364
FunctionTestVisualCueRange_UsesActualFrameTimes
(t *testing.T)
internal/tools/youtube/timestamp_test.go:114
← previousnext →1,701–1,800 of 1,885, ranked by callers