MCPcopy Create free account

hub / github.com/andrey-vk/wdbgp / functions

Functions1,274 in github.com/andrey-vk/wdbgp

FunctionTestComplexSetting_Set_InvalidValue
(t *testing.T)
internal/settings/setting_test.go:617
FunctionTestComplexSetting_Set_PersistsBeforeMutating
TestComplexSetting_Set_PersistsBeforeMutating is the complexSetting counterpart of TestSimpleSetting_Set_PersistsBeforeMutating.
internal/settings/setting_test.go:689
FunctionTestConcurrentReadDoesNotBlockOnInFlightWriteTransaction
TestConcurrentReadDoesNotBlockOnInFlightWriteTransaction guards against MaxOpenConns(1) on the main DB (issue #24: the ipranges feed's 100k+ row sync
internal/store/concurrency_test.go:20
FunctionTestContextLogger
(t *testing.T)
internal/logging/logging_test.go:74
FunctionTestCountPrefixesEmptyLists
(t *testing.T)
internal/store/store_auth_settings_test.go:781
FunctionTestCountPrefixesWithExplicitCategoriesAndServices
(t *testing.T)
internal/store/store_auth_settings_test.go:724
FunctionTestCountSelectionPrefixes
(t *testing.T)
internal/store/catalog_test.go:306
FunctionTestCountSelectionPrefixesEmptySelection
============================================================================= Prefix counting — additional tests =====================================
internal/store/store_auth_settings_test.go:703
FunctionTestCreateUserAcceptsAlreadyNormalizedNetworks
(t *testing.T)
internal/web/handlers_api_users_test.go:1880
FunctionTestCreateUserAcceptsValidNextHop
(t *testing.T)
internal/web/handlers_api_users_test.go:2157
FunctionTestCreateUserIgnoresOverlapWithLoginModeUser
(t *testing.T)
internal/web/handlers_api_users_test.go:2002
FunctionTestCreateUserInvalidWebAuth
============================================================================= TestCreateUserInvalidWebAuth — POST with invalid web_auth returns 400 ==
internal/web/handlers_api_users_test.go:1790
FunctionTestCreateUserRejectsInvalidNextHop
TestCreateUserRejectsInvalidNextHop guards against buildRoute silently ignoring an unparseable next_hop (it only applies the override if netip.ParseAd
internal/web/handlers_api_users_test.go:2134
FunctionTestCreateUserRejectsMalformedFilterWithoutCreatingUser
TestCreateUserRejectsMalformedFilterWithoutCreatingUser guards against a bug where AddUser committed the user row before SetUserRouteFilters rejected
internal/web/handlers_api_users_test.go:2212
FunctionTestCreateUserRejectsOverlapWithActiveUser
============================================================================= Cross-user network overlap validation (apiUsersCreate/apiUsersUpdate) ==
internal/web/handlers_api_users_test.go:1977
FunctionTestCreateUserRejectsUnnormalizedNetworks
============================================================================= TestCreateUserRejectsUnnormalizedNetworks — networks with unmasked host
internal/web/handlers_api_users_test.go:1844
FunctionTestDashboardEmpty
============================================================================= TestDashboardEmpty — GET /dashboard with empty DB → 200, verify defaults
internal/web/handlers_api_dashboard_test.go:17
FunctionTestDashboardMetricsEnabled
============================================================================= TestDashboardMetricsEnabled — set metricsEnabled=true, create user snaps
internal/web/handlers_api_dashboard_test.go:159
FunctionTestDashboardTotalPeersReflectsConfiguredUsers
============================================================================= TestDashboardTotalPeersReflectsConfiguredUsers — with the BGP speaker do
internal/web/handlers_api_dashboard_test.go:119
FunctionTestDashboardWithData
============================================================================= TestDashboardWithData — insert a user + a feed, then GET dashboard → ver
internal/web/handlers_api_dashboard_test.go:62
FunctionTestDebugCIDRInvalid
============================================================================= TestDebugCIDRInvalid — GET /api/admin/debug?cidr=invalid&mode=1 → 400 ==
internal/web/handlers_api_debug_test.go:32
FunctionTestDebugCIDRRequiresParam
============================================================================= TestDebugCIDRRequiresParam — GET /api/admin/debug?mode=1 (no cidr) → 400
internal/web/handlers_api_debug_test.go:16
FunctionTestDebugCIDRValid
============================================================================= TestDebugCIDRValid — insert a catalog entry, GET /api/admin/debug?cidr=1
internal/web/handlers_api_debug_test.go:49
FunctionTestDecodeASPath2Byte
(t *testing.T)
internal/bgp/wire_test.go:440
FunctionTestDecodeASPath4Byte
(t *testing.T)
internal/bgp/wire_test.go:462
FunctionTestDecodeNLRIFromAttr
(t *testing.T)
internal/bgp/wire_test.go:832
FunctionTestDecodePathAttributeSkipsUnknown
(t *testing.T)
internal/bgp/wire_test.go:633
FunctionTestDecodePrefixRejectsInvalid
(t *testing.T)
internal/store/ipcodec_test.go:46
FunctionTestDecodePrefixesRejectsInvalidPrefixLength
(t *testing.T)
internal/bgp/wire_test.go:625
FunctionTestDefaultWebAuthValidation
TestDefaultWebAuthValidation guards against a typo like "password" being silently accepted for default_web_auth. apiUsersCreate copies this value into
internal/settings/settings_test.go:1070
FunctionTestDegradedModeAllRoutesShowError
(t *testing.T)
internal/web/server_test.go:264
FunctionTestDegradedModeLanguageSwitch
(t *testing.T)
internal/web/server_test.go:294
FunctionTestDegradedModeShowsErrorPage
============================================================================= Degraded mode ==========================================================
internal/web/server_test.go:228
FunctionTestDegradedWhenAutoRestoreDisabled
(t *testing.T)
internal/store/backup_test.go:375
FunctionTestDegradedWhenNoBackupFound
(t *testing.T)
internal/store/backup_test.go:427
FunctionTestDegradedWhenOnlyCorruptedBackupFound
TestDegradedWhenOnlyCorruptedBackupFound covers a backup file whose schema_migrations table scans cleanly up through the target version and then hits
internal/store/backup_test.go:488
FunctionTestDeleteFeedAdapter
============================================================================= DeleteFeedAdapter ======================================================
internal/store/store_auth_settings_test.go:913
FunctionTestDeleteFeedAdapterNotFound
(t *testing.T)
internal/store/store_auth_settings_test.go:946
FunctionTestDeletePeerHandlesSameIPDifferentASN
(t *testing.T)
internal/bgp/manager_test.go:551
FunctionTestDesiredPrefixesClearsRoutesOnModeChange
(t *testing.T)
internal/store/routes_test.go:200
FunctionTestDesiredPrefixesDropsFeedDefaultRoute
(t *testing.T)
internal/store/routes_test.go:165
FunctionTestDesiredPrefixesEmptyWithoutSelection
(t *testing.T)
internal/store/routes_test.go:52
FunctionTestDesiredPrefixesExtendsGlobalFilters
(t *testing.T)
internal/store/routes_test.go:128
FunctionTestDesiredPrefixesForCategoryAndService
(t *testing.T)
internal/store/routes_test.go:13
FunctionTestDesiredPrefixesSubtractsGlobalDeny
(t *testing.T)
internal/store/routes_test.go:77
FunctionTestDesiredPrefixesUsesUserOverride
(t *testing.T)
internal/store/routes_test.go:104
FunctionTestDifferentIPSameASN
============================================================================= Test 3: Different IPs, same ASN ========================================
internal/bgp/session_test.go:209
FunctionTestDisabledFeedIsExcludedWithoutDeletingSnapshot
(t *testing.T)
internal/store/catalog_test.go:128
FunctionTestDoWithResult_Success
(t *testing.T)
internal/retry/retry_test.go:103
FunctionTestDo_ContextCancellation
(t *testing.T)
internal/retry/retry_test.go:79
FunctionTestDo_RetryAndFail
(t *testing.T)
internal/retry/retry_test.go:52
FunctionTestDo_RetryAndSucceed
(t *testing.T)
internal/retry/retry_test.go:28
FunctionTestDo_SuccessOnFirstAttempt
(t *testing.T)
internal/retry/retry_test.go:11
FunctionTestDownloadRetryFailure
(t *testing.T)
internal/feeds/retry_integration_test.go:92
FunctionTestDownloadWithRetry
(t *testing.T)
internal/feeds/retry_integration_test.go:59
FunctionTestDynamicPeer
============================================================================= Test 4: Dynamic peer (0.0.0.0) =========================================
internal/bgp/session_test.go:258
FunctionTestDynamicPeerIsPassiveOnly
(t *testing.T)
internal/bgp/manager_test.go:759
FunctionTestDynamicPeerSessionIPv6
============================================================================= Test: Dynamic peer (:: IPv6 wildcard) ==================================
internal/bgp/session_test.go:274
FunctionTestEncodeDecodeAddrRoundTrip
(t *testing.T)
internal/store/ipcodec_test.go:64
FunctionTestEncodeDecodeKeepalive
(t *testing.T)
internal/bgp/wire_test.go:48
FunctionTestEncodeDecodeNotification
(t *testing.T)
internal/bgp/wire_test.go:114
FunctionTestEncodeDecodeOpen
(t *testing.T)
internal/bgp/wire_test.go:10
FunctionTestEncodeDecodePrefixRoundTrip
(t *testing.T)
internal/store/ipcodec_test.go:9
FunctionTestEncodeDecodeUpdate
(t *testing.T)
internal/bgp/wire_test.go:62
FunctionTestEncodePrefixMasksHostBits
(t *testing.T)
internal/store/ipcodec_test.go:38
FunctionTestEncodePrefixString
(t *testing.T)
internal/store/ipcodec_test.go:77
FunctionTestEnsureDictionaryIDsAreStable
(t *testing.T)
internal/store/dictionaries_test.go:131
FunctionTestEnvBoolIsCaseInsensitive
TestEnvBoolIsCaseInsensitive guards against a regression from the internal/config -> internal/settings rewrite: the previous parser lowercased the env
cmd/wdbgp/main_test.go:16
FunctionTestEnvOnlySettingCannotBeSetOrReset
TestEnvOnlySettingCannotBeSetOrReset guards the dbKey="" convention: an empty dbKey means "env-only, not persisted to the database" (see the comments
internal/settings/settings_test.go:193
FunctionTestExponentialBackoffWithJitter
(t *testing.T)
internal/retry/retry_test.go:225
FunctionTestFeedsCRUD
============================================================================= TestFeedsCRUD — create, read, update, delete lifecycle =================
internal/web/handlers_api_feeds_test.go:42
FunctionTestFeedsCreateRejectsEmptyName
TestFeedsCreateRejectsEmptyName / TestFeedsUpdateRejectsEmptyName restore a validation the old (pre-SPA) handlers had — the JSON handlers dropped it,
internal/web/handlers_api_feeds_test.go:282
FunctionTestFeedsCreateRejectsInvalidAdapterID
TestFeedsCreateRejectsInvalidAdapterID guards against a stale/invalid adapter_id only being caught by the feeds.adapter_id foreign-key constraint on i
internal/web/handlers_api_feeds_test.go:381
FunctionTestFeedsCreateRejectsInvalidModeID
TestFeedsCreateRejectsInvalidModeID guards against a bug where a stale/ invalid mode_id let AddFeed commit the feed row before the catalog_mode_feeds
internal/web/handlers_api_feeds_test.go:329
FunctionTestFeedsDeleteNotFound
(t *testing.T)
internal/web/handlers_api_feeds_test.go:239
FunctionTestFeedsGetNotFound
============================================================================= TestFeedsGetNotFound — GET /feeds/99999 → 404 ==========================
internal/web/handlers_api_feeds_test.go:204
FunctionTestFeedsList
============================================================================= TestFeedsList — empty → [] =============================================
internal/web/handlers_api_feeds_test.go:17
FunctionTestFeedsSyncAll
============================================================================= TestFeedsSyncAll — create enabled feed, sync all → 503 (syncer is nil) =
internal/web/handlers_api_feeds_test.go:177
FunctionTestFeedsUpdateNotFound
TestFeedsUpdateNotFound / TestFeedsDeleteNotFound guard against UpdateFeed/DeleteFeed's sql.ErrNoRows for a nonexistent feed ID surfacing as a raw 500
internal/web/handlers_api_feeds_test.go:220
FunctionTestFeedsUpdateRejectsEmptyName
(t *testing.T)
internal/web/handlers_api_feeds_test.go:300
FunctionTestFeedsUpdateRejectsInvalidAdapterID
TestFeedsUpdateRejectsInvalidAdapterID mirrors TestFeedsCreateRejectsInvalidAdapterID for the update path — a stale/ invalid adapter_id must be reject
internal/web/handlers_api_feeds_test.go:256
FunctionTestFilterListValidation
(t *testing.T)
internal/settings/settings_test.go:824
FunctionTestGenCommunitiesRuntimeRespectsContextCancellation
TestGenCommunitiesRuntimeRespectsContextCancellation — genCommunitiesRuntime used tx.Query/tx.Exec internally, ignoring the ctx callers pass in. A can
internal/store/store_auth_settings_test.go:680
FunctionTestGenerateCommunitiesFillsMissing
(t *testing.T)
internal/store/store_auth_settings_test.go:632
FunctionTestGenerateCommunitiesHandlesMultiServiceCategoriesAndIsIdempotent
TestGenerateCommunitiesHandlesMultiServiceCategoriesAndIsIdempotent covers the refactor that replaced genCommunitiesRuntime's per-category N+1 service
internal/store/communities_test.go:17
FunctionTestGetAllSettingsEmpty
============================================================================= App Settings ===========================================================
internal/store/store_auth_settings_test.go:458
FunctionTestGetAllSettingsPopulated
(t *testing.T)
internal/store/store_auth_settings_test.go:475
FunctionTestGetCommunities
============================================================================= Communities — migration 13 + methods ===================================
internal/store/store_auth_settings_test.go:545
FunctionTestGetUserCredentialsEmpty
============================================================================= GetUserCredentials =====================================================
internal/store/store_auth_settings_test.go:241
FunctionTestGetUserCredentialsOneAndMultiple
(t *testing.T)
internal/store/store_auth_settings_test.go:262
FunctionTestHTTPTransientError_Detection
(t *testing.T)
internal/retry/retry_test.go:182
FunctionTestHelperFunctions
(t *testing.T)
internal/logging/logging_test.go:104
FunctionTestHostValidationRejectsEmbeddedPortInEnvValue
(t *testing.T)
internal/settings/settings_test.go:1019
FunctionTestIPv4Validation
(t *testing.T)
internal/settings/settings_test.go:793
FunctionTestIPv6UpdateWithMpReachNLRI
(t *testing.T)
internal/bgp/wire_test.go:760
FunctionTestJavaScriptAdapterNormalizesResult
(t *testing.T)
internal/feeds/feeds_test.go:80
FunctionTestJavaScriptAdapterRejectsUnlistedHost
(t *testing.T)
internal/feeds/feeds_test.go:212
FunctionTestJavaScriptAdapterSRSGet
(t *testing.T)
internal/feeds/feeds_test.go:113
FunctionTestJavaScriptAdapterStopsWhenContextIsCanceled
(t *testing.T)
internal/feeds/feeds_test.go:251
FunctionTestJavaScriptAdapterTimesOut
(t *testing.T)
internal/feeds/feeds_test.go:233
← previousnext →801–900 of 1,274, ranked by callers