Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andrey-vk/wdbgp
/ functions
Functions
1,274 in github.com/andrey-vk/wdbgp
⨍
Functions
1,274
◇
Types & classes
158
Function
TestRecordUserSnapshotEnabled
============================================================================= TestRecordUserSnapshotEnabled — RecordUserSnapshot with metrics enabled
internal/store/snapshots_test.go:287
Function
TestRejectNewerDatabase
(t *testing.T)
internal/store/001_fresh_test.go:97
Function
TestReplaceCatalogEntriesBatchBoundaries
TestReplaceCatalogEntriesBatchBoundaries covers counts at, just under, and just over entryInsertBatchSize, since an off-by-one in the chunk loop would
internal/store/dictionaries_test.go:32
Function
TestReplaceCatalogEntriesRejectsInvalidCIDR
(t *testing.T)
internal/store/dictionaries_test.go:118
Function
TestReplaceCatalogEntriesReplacesAndNormalizes
(t *testing.T)
internal/store/dictionaries_test.go:66
Function
TestRequireUserSelfHealCSRFCookieHonorsProxyHTTPS
============================================================================= TestRequireUserSelfHealCSRFCookieHonorsProxyHTTPS / TestUserLogoutCookie
internal/web/handlers_api_user_test.go:138
Function
TestResetBuiltInFeedAdapter
(t *testing.T)
internal/store/001_fresh_test.go:56
Function
TestRestoreFromBackup
(t *testing.T)
internal/store/backup_test.go:277
Function
TestRouteAnnouncement
============================================================================= Test 6: Route announcement =============================================
internal/bgp/session_test.go:352
Function
TestRouteAnnouncementIPv6
TestRouteAnnouncementIPv6: announce IPv6 prefixes over an IPv6 BGP session.
internal/bgp/session_test.go:891
Function
TestRouteAnnouncementToMultiplePeers
============================================================================= Test: Speaker announces route to multiple peers (same IP, different ASN)
internal/bgp/session_test.go:707
Function
TestRouteFiltersJSONLowercaseKeys
TestRouteFiltersJSONLowercaseKeys guards against RouteFilters marshaling as "Allow"/"Deny" — the user SPA reads userData.filters?.allow/?.deny (lowerc
internal/store/routes_test.go:351
Function
TestRouteWithdrawal
============================================================================= Test 7: Route withdrawal ===============================================
internal/bgp/session_test.go:404
Function
TestRouteWithdrawalIPv6
TestRouteWithdrawalIPv6: withdraw IPv6 prefixes over IPv6 session.
internal/bgp/session_test.go:955
Function
TestRunRejectsBadDBPathBeforeOpeningStore
TestRunRejectsBadDBPathBeforeOpeningStore guards against WDBGP_DB pointing at an unusable parent path (here: a path component that's a regular file, n
cmd/wdbgp/main_test.go:47
Function
TestSPAAdminServesHTML
============================================================================= SPA serving tests ======================================================
internal/web/server_spa_test.go:50
Function
TestSPAAssetsServed
(t *testing.T)
internal/web/server_spa_test.go:86
Function
TestSPANotFoundFallback
(t *testing.T)
internal/web/server_spa_test.go:129
Function
TestSPARootServesUserHTML
(t *testing.T)
internal/web/server_spa_test.go:68
Function
TestSameIPDifferentASNs
============================================================================= Test 2: Same IP, different ASNs ========================================
internal/bgp/session_test.go:161
Function
TestSameIPDifferentASNsIPv6
TestSameIPDifferentASNsIPv6: same IPv6 address, different ASNs.
internal/bgp/session_test.go:850
Function
TestSameIPv4RequiresMatchingPassword
(t *testing.T)
internal/web/server_test.go:564
Function
TestSameIPv6RequiresMatchingPassword
(t *testing.T)
internal/web/server_test.go:604
Function
TestSaveFeedSnapshot
============================================================================= TestSaveFeedSnapshot — SaveFeedSnapshot with map[int64]int{1:500, 2:300}
internal/store/snapshots_test.go:161
Function
TestSaveFeedSnapshotDedup
============================================================================= TestSaveFeedSnapshotDedup — Save same values twice → only 1 row ========
internal/store/snapshots_test.go:187
Function
TestSaveSettingsInsertAndUpdate
(t *testing.T)
internal/store/store_auth_settings_test.go:503
Function
TestSaveUserSnapshotDedup
============================================================================= TestSaveUserSnapshotDedup — Save same values twice → GetUserSnapshots re
internal/store/snapshots_test.go:38
Function
TestSaveUserSnapshotRateLimit
============================================================================= TestSaveUserSnapshotRateLimit — Save different values immediately → GetU
internal/store/snapshots_test.go:63
Function
TestSaveUserSnapshotStores
============================================================================= TestSaveUserSnapshotStores — SaveUserSnapshot → GetUserSnapshots returns
internal/store/snapshots_test.go:13
Function
TestSecretSettingsDBKeys
(t *testing.T)
internal/settings/settings_test.go:585
Function
TestSecretSettingsJSONReturnsNil
(t *testing.T)
internal/settings/settings_test.go:624
Function
TestSecretSettingsJSONReturnsNil_DB
Test that even DB-stored secrets don't leak via JSON.
internal/settings/settings_test.go:670
Function
TestSessionEstablished
============================================================================= Test 1: Basic session establishment ====================================
internal/bgp/session_test.go:145
Function
TestSessionEstablishedIPv6
TestSessionEstablishedIPv6: basic BGP session over IPv6 loopback.
internal/bgp/session_test.go:817
Function
TestSessionMaxAgeValidation
TestSessionMaxAgeValidation guards against session_max_age being settable to an absurdly large value (sessions that never meaningfully expire) or a ti
internal/settings/settings_test.go:892
Function
TestSessionMaxAgeValidationRejectsInvalidEnvValue
(t *testing.T)
internal/settings/settings_test.go:921
Function
TestSessionWith4ByteASN
============================================================================= Test: 4-byte ASN session with AS4 capability negotiation ===============
internal/bgp/session_test.go:1101
Function
TestSetCommunityInsertAndUpdate
(t *testing.T)
internal/store/store_auth_settings_test.go:568
Function
TestSetCommunityRejectsDuplicateNumber
(t *testing.T)
internal/store/store_auth_settings_test.go:614
Function
TestSetUserCredentialAddNewUpdatePasswordDelete
============================================================================= SetUserCredential ======================================================
internal/store/store_auth_settings_test.go:312
Function
TestSetVisibleUserSelectionPreservesDisabledOnlySelections
(t *testing.T)
internal/store/catalog_test.go:216
Function
TestSettingsNullValueDeletesOverride
TestSettingsNullValueDeletesOverride verifies that sending null for a setting key removes it from the database (use default / clear override).
internal/web/server_test.go:747
Function
TestSettingsPersistAfterSet
(t *testing.T)
internal/settings/settings_test.go:505
Function
TestSettings_ComputedDefaults
(t *testing.T)
internal/settings/settings_test.go:566
Function
TestSettings_EnvOnlyField_Set
(t *testing.T)
internal/settings/settings_test.go:396
Function
TestSettings_JSON
(t *testing.T)
internal/settings/settings_test.go:445
Function
TestSettings_JSON_EnvSet
(t *testing.T)
internal/settings/settings_test.go:484
Function
TestSettings_OnChange
(t *testing.T)
internal/settings/settings_test.go:409
Function
TestSettings_SetAndReset
(t *testing.T)
internal/settings/settings_test.go:371
Function
TestSimpleSetting_ConcurrentGet
(t *testing.T)
internal/settings/setting_test.go:355
Function
TestSimpleSetting_EmptyEnvVar
(t *testing.T)
internal/settings/setting_test.go:372
Function
TestSimpleSetting_Env_RunsValidator
TestSimpleSetting_Env_RunsValidator guards against a regression where newSimple returned as soon as the env var parsed, before ever reaching the valid
internal/settings/setting_test.go:313
Function
TestSimpleSetting_GetSetReset
(t *testing.T)
internal/settings/setting_test.go:150
Function
TestSimpleSetting_Int_Basic
(t *testing.T)
internal/settings/setting_test.go:267
Function
TestSimpleSetting_Int_Env
(t *testing.T)
internal/settings/setting_test.go:287
Function
TestSimpleSetting_Int_InvalidEnv
(t *testing.T)
internal/settings/setting_test.go:299
Function
TestSimpleSetting_JSON_DBSet
(t *testing.T)
internal/settings/setting_test.go:233
Function
TestSimpleSetting_JSON_Default
(t *testing.T)
internal/settings/setting_test.go:215
Function
TestSimpleSetting_JSON_EnvSet
(t *testing.T)
internal/settings/setting_test.go:251
Function
TestSimpleSetting_New_DBValue
(t *testing.T)
internal/settings/setting_test.go:108
Function
TestSimpleSetting_New_EnvFalse
(t *testing.T)
internal/settings/setting_test.go:87
Function
TestSimpleSetting_New_EnvTrue
(t *testing.T)
internal/settings/setting_test.go:72
Function
TestSimpleSetting_New_EnvWinsOverDB
(t *testing.T)
internal/settings/setting_test.go:123
Function
TestSimpleSetting_New_InvalidDBIgnored
(t *testing.T)
internal/settings/setting_test.go:139
Function
TestSimpleSetting_New_InvalidEnv
(t *testing.T)
internal/settings/setting_test.go:99
Function
TestSimpleSetting_New_NoEnvNoDB
============================================================================= simpleSetting tests ====================================================
internal/settings/setting_test.go:55
Function
TestSimpleSetting_OnChange
(t *testing.T)
internal/settings/setting_test.go:386
Function
TestSimpleSetting_OnChange_Reset
(t *testing.T)
internal/settings/setting_test.go:422
Function
TestSimpleSetting_ResetOnEnv
(t *testing.T)
internal/settings/setting_test.go:203
Function
TestSimpleSetting_Reset_PersistsBeforeMutating
TestSimpleSetting_Reset_PersistsBeforeMutating is the Reset-side counterpart of TestSimpleSetting_Set_PersistsBeforeMutating.
internal/settings/setting_test.go:501
Function
TestSimpleSetting_SetOnEnv
(t *testing.T)
internal/settings/setting_test.go:191
Function
TestSimpleSetting_Set_PersistsBeforeMutating
TestSimpleSetting_Set_PersistsBeforeMutating guards against a failed SaveSetting leaving Get() returning a value the store never actually received — t
internal/settings/setting_test.go:451
Function
TestSimpleSetting_String_Basic
(t *testing.T)
internal/settings/setting_test.go:335
Function
TestSimpleSetting_Validate_DoesNotMutate
TestSimpleSetting_Validate_DoesNotMutate proves Validate is a pure dry-run: an invalid value is rejected, a valid one is accepted, and either way Get(
internal/settings/setting_test.go:471
Function
TestSpeakerPeerStatesEmpty
(t *testing.T)
internal/bgp/speaker_test.go:91
Function
TestSpeakerSetPeers
(t *testing.T)
internal/bgp/speaker_test.go:33
Function
TestSpeakerStartStop
(t *testing.T)
internal/bgp/speaker_test.go:12
Function
TestSplitNewlines
(t *testing.T)
internal/store/routes_test.go:271
Function
TestStatusEndpoint
============================================================================= Status endpoint ========================================================
internal/web/server_test.go:128
Function
TestSyncAllSkipsDisabledFeeds
(t *testing.T)
internal/feeds/feeds_test.go:388
Function
TestSyncDiscardsDownloadWhenFeedURLChanges
(t *testing.T)
internal/feeds/feeds_test.go:445
Function
TestSyncDiscardsResultWhenAdapterChanges
(t *testing.T)
internal/feeds/feeds_test.go:511
Function
TestSyncIPRangesFeedStoresModeCatalog
(t *testing.T)
internal/feeds/feeds_test.go:566
Function
TestSyncIntervalValidation
(t *testing.T)
internal/settings/settings_test.go:807
Function
TestSyncLoopReloadsIntervalLive
TestSyncLoopReloadsIntervalLive guards against a bug where sync_interval saved through the settings API had no runtime effect until a full process res
cmd/wdbgp/sync_loop_test.go:49
Function
TestToggleSelections
(t *testing.T)
internal/store/dictionaries_test.go:153
Function
TestTransientError_Detection
(t *testing.T)
internal/retry/retry_test.go:124
Function
TestTranslationCatalogsHaveMatchingKeys
============================================================================= Translation / i18n =====================================================
internal/web/server_test.go:338
Function
TestUpdateFeedURLClearsSnapshotAndDeleteCascades
(t *testing.T)
internal/store/feeds_test.go:67
Function
TestUpdatePeerClearsRoutesOnPasswordChange
TestUpdatePeerClearsRoutesOnPasswordChange guards against a stale peerRoutes cache after a peer session gets recreated for a reason other than an IP/A
internal/bgp/manager_test.go:635
Function
TestUpdatePeerRejectsDuplicatePeerIPASNOnFirstTrack
TestUpdatePeerRejectsDuplicatePeerIPASNOnFirstTrack guards UpdatePeer's "not yet tracked" branch (a user ID the manager hasn't seen before — e.g. a pe
internal/bgp/manager_test.go:692
Function
TestUpdateUserAllowsReactivatingNonConflictingNetworks
(t *testing.T)
internal/web/handlers_api_users_test.go:2099
Function
TestUpdateUserInvalidWebAuth
============================================================================= TestUpdateUserInvalidWebAuth — PUT with invalid web_auth returns 400 ===
internal/web/handlers_api_users_test.go:1808
Function
TestUpdateUserRejectsInvalidNextHop
TestUpdateUserRejectsInvalidNextHop mirrors TestCreateUserRejectsInvalidNextHop for the partial-update path.
internal/web/handlers_api_users_test.go:2172
Function
TestUpdateUserRejectsMalformedFilterWithoutMutatingUser
TestUpdateUserRejectsMalformedFilterWithoutMutatingUser mirrors the create case for the partial-update path: a malformed filter CIDR must be caught be
internal/web/handlers_api_users_test.go:2238
Function
TestUpdateUserRejectsReactivatingConflictingNetworks
(t *testing.T)
internal/web/handlers_api_users_test.go:2048
Function
TestUpdateUserRejectsUnnormalizedNetworks
(t *testing.T)
internal/web/handlers_api_users_test.go:1893
Function
TestUpdateUserWebAuthChanges
(t *testing.T)
internal/store/store_auth_settings_test.go:407
Function
TestUserAuthBothRequiresBothFactors
============================================================================= TestUserAuthBothRequiresBothFactors — web_auth=both requires IP + cookie
internal/web/handlers_api_user_test.go:22
Function
TestUserAuthLoginModeCookieOnly
============================================================================= TestUserAuthLoginModeCookieOnly — a web_auth=login user must be able to
internal/web/handlers_api_user_test.go:95
← previous
next →
1,001–1,100 of 1,274, ranked by callers