MCPcopy Create free account

hub / github.com/danielmiessler/Fabric / functions

Functions1,885 in github.com/danielmiessler/Fabric

FunctionTestDb_SaveEnv
(t *testing.T)
internal/plugins/db/fsdb/db_test.go:49
FunctionTestDb_UpdateEnvVars
(t *testing.T)
internal/plugins/db/fsdb/db_test.go:63
FunctionTestDb_UpdateEnvVars_Concurrent
(t *testing.T)
internal/plugins/db/fsdb/db_test.go:153
FunctionTestDb_UpdateEnvVars_CorruptFile
(t *testing.T)
internal/plugins/db/fsdb/db_test.go:111
FunctionTestDb_UpdateEnvVars_MissingFile
(t *testing.T)
internal/plugins/db/fsdb/db_test.go:93
FunctionTestDb_UpdateEnvVars_SkipEmpty
(t *testing.T)
internal/plugins/db/fsdb/db_test.go:124
FunctionTestDefaultBedrockModels_NotEmpty
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:187
FunctionTestDenyNonPublicAddress
(t *testing.T)
internal/util/httpclient_test.go:17
FunctionTestDetectSystemLocale
(t *testing.T)
internal/i18n/locale_test.go:8
FunctionTestDetectVersion
(t *testing.T)
cmd/generate_changelog/internal/changelog/processing_test.go:12
FunctionTestDetectVersionFromNix
(t *testing.T)
cmd/generate_changelog/internal/changelog/generator_test.go:12
FunctionTestEngineDispatchesSystemPlugins
TestEngineDispatchesSystemPlugins checks that a file, fetch or datetime token in a template gets to its plugin through ApplyTemplate, and that the plu
internal/plugins/template/template_single_pass_test.go:135
FunctionTestEnginesRefuseSystemPlugins
TestEnginesRefuseSystemPlugins checks that a pattern that a client saves cannot read the server environment through the REST or the Ollama server.
internal/server/serve_test.go:118
FunctionTestEnsureAccessTokenKeepsFreshTokenOverStore
Regression: a valid in-memory token (e.g. just obtained via Setup's OAuth) must not be reloaded from the store, which still holds the stale token unti
internal/plugins/ai/codex/codex_test.go:780
FunctionTestEnsureAccessTokenPersistError
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:702
FunctionTestEnsureAccessTokenPersistsRotatedRefreshToken
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:656
FunctionTestEnsureAccessTokenReloadsStoreBeforeRefresh
(t *testing.T)
internal/plugins/ai/codex/codex_test.go:741
FunctionTestEnsureIncomingDir
(t *testing.T)
cmd/generate_changelog/internal/changelog/generator_test.go:42
FunctionTestEnsureIncomingDirCreation
(t *testing.T)
cmd/generate_changelog/internal/changelog/processing_test.go:231
FunctionTestEnvPrefix
(t *testing.T)
internal/plugins/ai/azure_entra/azure_entra_test.go:34
FunctionTestExtensionExecutor
(t *testing.T)
internal/plugins/template/extension_executor_test.go:11
FunctionTestExtensionManager
TestExtensionManager is the main test suite for ExtensionManager
internal/plugins/template/extension_manager_test.go:10
FunctionTestExtensionManagerErrors
TestExtensionManagerErrors tests error cases
internal/plugins/template/extension_manager_test.go:88
FunctionTestExtensionManagerWithInvalidConfig
TestExtensionManagerWithInvalidConfig tests handling of invalid configurations
internal/plugins/template/extension_manager_test.go:120
FunctionTestExtensionValueMixedInputAndVariable
TestExtensionValueMixedInputAndVariable ensures an extension value mixing {{input}} and another template variable is processed.
internal/plugins/template/template_extension_mixed_test.go:11
FunctionTestExtensionValueWithSentinel
TestExtensionValueWithSentinel specifically tests the extension value sentinel replacement logic
internal/plugins/template/template_sentinel_test.go:187
FunctionTestExtractAndValidateVideoId
(t *testing.T)
internal/tools/youtube/youtube_test.go:81
FunctionTestExtractFencedCodeBlock
(t *testing.T)
internal/domain/codeblock_test.go:5
FunctionTestExtractModelName
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:22
FunctionTestExtractStepOutput
(t *testing.T)
internal/cli/workflow_test.go:181
FunctionTestExtractTextFromResponse
Test ExtractTextWithCitations from geminicommon
internal/plugins/ai/gemini/gemini_test.go:41
FunctionTestExtractTextFromResponse_EmptyGroundingChunks
(t *testing.T)
internal/plugins/ai/gemini/gemini_test.go:69
FunctionTestExtractTextFromResponse_Nil
(t *testing.T)
internal/plugins/ai/gemini/gemini_test.go:63
FunctionTestExtractTextSearchResultSources
(t *testing.T)
internal/plugins/ai/openai/openai_test.go:414
FunctionTestExtractTextSkipsThoughtParts
(t *testing.T)
internal/plugins/ai/geminicommon/geminicommon_test.go:10
FunctionTestFabricChatClient_NoProxy
The self-forward client must not use a proxy. A proxy gets the configured API key, and the operator did not configure that host. The redirect test bel
internal/server/ollama_test.go:442
FunctionTestFallbackRegions_NotEmpty
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:425
FunctionTestFetchBedrockRegions_EmptyEndpoints_ReturnsFallback
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:398
FunctionTestFetchBedrockRegions_HTTPError_ReturnsFallback
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:355
FunctionTestFetchBedrockRegions_InvalidJSON_ReturnsFallback
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:367
FunctionTestFetchBedrockRegions_NoBedrock_ReturnsFallback
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:379
FunctionTestFetchBedrockRegions_ResultsSorted
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:410
FunctionTestFetchBedrockRegions_Unreachable_ReturnsFallback
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:391
FunctionTestFetchBedrockRegions_ValidJSON
(t *testing.T)
internal/plugins/ai/bedrock/bedrock_test.go:338
FunctionTestFetchContentValidation
TestFetchContentValidation checks that fetch rejects each response that is not small, valid text with status 200.
internal/plugins/template/fetch_test.go:124
FunctionTestFetchFilesFromRepo
TestFetchFilesFromRepo checks the go-git path. It also checks that FetchFilesFromRepo adds the "/" to PathPrefix and obeys SingleDirectory.
internal/tools/githelper/githelper_test.go:83
FunctionTestFetchFilesViaGitCLI
TestFetchFilesViaGitCLI checks that a URL that looks like a git option does not run as an option. It also checks that a good clone copies the regular
internal/tools/githelper/githelper_test.go:115
FunctionTestFetchModelsDirectly_429NoCacheCleanError
A 429 with no cache yields a concise message, not the raw HTML body.
internal/plugins/ai/openai/models_cache_test.go:121
FunctionTestFetchModelsDirectly_429ServesStaleCache
A 429 with a stale cache present returns the stale list rather than erroring.
internal/plugins/ai/openai/models_cache_test.go:103
FunctionTestFetchModelsDirectly_DirectArray
Ensures we can fetch models directly when a provider returns a direct array of models instead of the standard OpenAI list response structure.
internal/plugins/ai/openai/openai_models_test.go:14
FunctionTestFetchModelsDirectly_EmptyArray
Ensures we handle empty model lists correctly
internal/plugins/ai/openai/openai_models_test.go:63
FunctionTestFetchModelsDirectly_NoGitHubHeaderForOtherHosts
Ensures non-GitHub hosts do not receive the GitHub-specific API version header.
internal/plugins/ai/openai/openai_models_test.go:48
FunctionTestFetchModelsDirectly_OpenAIFormat
Ensures we can fetch models when a provider returns the standard OpenAI format
internal/plugins/ai/openai/openai_models_test.go:31
FunctionTestFetchModelsDirectly_ServesFreshCacheWithoutRequest
A fresh cache short-circuits before any network call.
internal/plugins/ai/openai/models_cache_test.go:85
FunctionTestFetchModelsDirectly_WritesCacheOnSuccess
A successful fetch is cached, so a later failure is served from cache.
internal/plugins/ai/openai/models_cache_test.go:139
FunctionTestFetchPlugin
(t *testing.T)
internal/plugins/template/fetch_test.go:23
FunctionTestFetchWithTestServerAllowed
TestFetchWithTestServerAllowed checks that fetch reads the response when the address check accepts the address of the server.
internal/plugins/template/fetch_test.go:111
FunctionTestFilePlugin
(t *testing.T)
internal/plugins/template/file_test.go:11
FunctionTestFilePluginConfinement
TestFilePluginConfinement checks that each operation rejects a path that goes out of the working folder, and that a relative path in the folder works.
internal/plugins/template/file_confine_test.go:13
FunctionTestFilePluginReadStopsAtLimit
TestFilePluginReadStopsAtLimit checks that read stops at MaxFileSize when Stat does not give the correct size. Stat gives the size 0 for /dev/zero.
internal/plugins/template/file_confine_test.go:74
FunctionTestFilePluginTailLargeLineCount
TestFilePluginTailLargeLineCount checks that a large line count does not cause a large allocation, and that tail gives all lines of a small file.
internal/plugins/template/file_confine_test.go:110
FunctionTestFilePluginTailStopsAtLimit
TestFilePluginTailStopsAtLimit checks that tail stops at MaxFileSize when Stat does not give the correct size. /dev/urandom has the size 0 and it does
internal/plugins/template/file_confine_test.go:93
FunctionTestFileProcessing_ErrorHandling
(t *testing.T)
cmd/generate_changelog/internal/changelog/processing_test.go:185
FunctionTestFilterByVendorCaseInsensitive
(t *testing.T)
internal/plugins/ai/models_test.go:58
FunctionTestFilterConversationalModels
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:244
FunctionTestFilterConversationalModels_AllFiltered
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:273
FunctionTestFilterConversationalModels_EmptyInput
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:268
FunctionTestFindModelNameCaseInsensitive
(t *testing.T)
internal/plugins/ai/models_test.go:78
FunctionTestFindVTTFilesWithFallback_SkipsSymlink
TestFindVTTFilesWithFallback_SkipsSymlink checks that a .vtt symlink is not returned and that a regular .vtt file is returned.
internal/tools/youtube/vtt_symlink_test.go:11
FunctionTestFindVendorsByModel
(t *testing.T)
internal/plugins/ai/models_test.go:29
FunctionTestFindVendorsByModelFirst
(t *testing.T)
internal/plugins/ai/models_test.go:20
FunctionTestFixedFileExtensionExecutor
(t *testing.T)
internal/plugins/template/extension_executor_test.go:191
FunctionTestFormatCueTimestamp
(t *testing.T)
internal/tools/youtube/timestamp_test.go:98
FunctionTestFormatMessages
(t *testing.T)
internal/chatfmt/messages_test.go:9
FunctionTestFormatMessagesMultiContent
(t *testing.T)
internal/chatfmt/messages_test.go:23
FunctionTestFormatMessagesNilImageURL
(t *testing.T)
internal/chatfmt/messages_test.go:51
FunctionTestFormatMetadataAsText_EpisodeMetadata
(t *testing.T)
internal/tools/spotify/spotify_test.go:141
FunctionTestFormatMetadataAsText_NilAndUnknownTypes
(t *testing.T)
internal/tools/spotify/spotify_test.go:223
FunctionTestFormatMetadataAsText_SearchResult
(t *testing.T)
internal/tools/spotify/spotify_test.go:180
FunctionTestFormatMetadataAsText_ShowMetadata
(t *testing.T)
internal/tools/spotify/spotify_test.go:105
FunctionTestFormatResultsAndEmptyQuery
(t *testing.T)
internal/tools/parallel/parallel_test.go:118
FunctionTestGenerateWAVFile
Test generateWAVFile method (basic test)
internal/plugins/ai/gemini/gemini_test.go:240
FunctionTestGetApplyVariables
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:93
FunctionTestGetApplyVariables_FromFile
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:248
FunctionTestGetChatterUsesSelectedVendorsModelSpelling
(t *testing.T)
internal/core/plugin_registry_model_spelling_test.go:11
FunctionTestGetChatter_ActivatesInactiveVendor
(t *testing.T)
internal/core/plugin_registry_test.go:268
FunctionTestGetChatter_AllowsExplicitCodexManualModel
(t *testing.T)
internal/core/plugin_registry_test.go:106
FunctionTestGetChatter_AllowsExplicitCodexModelWhenListingFails
(t *testing.T)
internal/core/plugin_registry_test.go:136
FunctionTestGetChatter_ParsesVendorModelPrefix
(t *testing.T)
internal/core/plugin_registry_test.go:184
FunctionTestGetChatter_RejectsExplicitCodexModelFromOtherVendor
(t *testing.T)
internal/core/plugin_registry_test.go:160
FunctionTestGetChatter_ReportsConfigureError
(t *testing.T)
internal/core/plugin_registry_test.go:244
FunctionTestGetChatter_VendorPrefixIgnoredWhenNotAVendor
(t *testing.T)
internal/core/plugin_registry_test.go:214
FunctionTestGetChatter_WarnsOnAmbiguousModel
(t *testing.T)
internal/core/plugin_registry_test.go:60
FunctionTestGetConfig_MasksKeys
GET /config masks each set key and returns the URLs as they are.
internal/server/configuration_test.go:136
FunctionTestGetConfig_NoEnvFile
With no .env file, GET /config returns the same 12 keys, all empty.
internal/server/configuration_test.go:174
FunctionTestGetFromDB_AllowsDotsWithinName
A ".." in a name without separators is one safe path element. ValidateStorageName accepts it, and getFromDB also accepts it.
internal/plugins/db/fsdb/patterns_test.go:423
FunctionTestGetFromDB_PathTraversal
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:402
FunctionTestGetLocaleCandidates
(t *testing.T)
internal/i18n/i18n_variants_test.go:48
FunctionTestGetMaxTokens
(t *testing.T)
internal/plugins/ai/vertexai/vertexai_test.go:308
FunctionTestGetModelsDoesNotCacheTotalFailure
TestGetModelsDoesNotCacheTotalFailure validates that a discovery where all vendors fail returns an error and that the next call tries the vendors agai
internal/plugins/ai/vendors_test.go:72
← previousnext →1,301–1,400 of 1,885, ranked by callers