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
TestAdapterHTTPRejectsRedirectToUnlistedHost
(t *testing.T)
internal/feeds/feeds_test.go:310
Function
TestAdaptersDeleteNotFound
TestAdaptersDeleteNotFound guards against apiAdaptersDelete's initial s.store.FeedAdapter lookup surfacing sql.ErrNoRows as a raw 500 instead of the 4
internal/web/handlers_api_adapters_test.go:17
Function
TestAddFeedWithModeAssignsOnSuccess
TestAddFeedWithModeAssignsOnSuccess confirms the happy path: a valid mode ID gets the feed assigned in the same call, matching what AddFeed + AddFeedT
internal/store/feeds_test.go:42
Function
TestAddFeedWithModeRollsBackOnModeAssignmentFailure
TestAddFeedWithModeRollsBackOnModeAssignmentFailure guards against a non-atomic create: AddFeed's transaction only ever inserted the feeds row, so a c
internal/store/feeds_test.go:18
Function
TestAddUserAcceptsSharedIPWithPassword
(t *testing.T)
internal/web/server_test.go:531
Function
TestAddUserAcceptsUniqueIPWithoutPassword
(t *testing.T)
internal/web/server_test.go:393
Function
TestAddUserDynamicPeersNoPasswordRequired
(t *testing.T)
internal/web/server_test.go:417
Function
TestAddUserRejectsDuplicateDynamicPeerASN
(t *testing.T)
internal/web/server_test.go:456
Function
TestAddUserRejectsSameIPAndSameASN
============================================================================= Peer uniqueness tests ==================================================
internal/web/server_test.go:358
Function
TestAddUserRejectsSharedIPWithoutPasswordWhenRequired
(t *testing.T)
internal/web/server_test.go:495
Function
TestAddUserWithWebAuthBoth
(t *testing.T)
internal/store/store_auth_settings_test.go:385
Function
TestAddUserWithWebAuthLogin
============================================================================= AddUser / UpdateUser with web_auth =====================================
internal/store/store_auth_settings_test.go:363
Function
TestAdminLoginAPI
============================================================================= API tests ==============================================================
internal/web/server_test.go:649
Function
TestAdminLogoutAPI
TestAdminLogoutAPI tests POST /api/admin/logout
internal/web/server_test.go:936
Function
TestAdminSaveSelectionsPreservesHidden
============================================================================= TestAdminSaveSelectionsPreservesHidden — admin saves selections, disable
internal/web/handlers_api_users_test.go:1372
Function
TestAdminSaveSelectionsRejectsDisabledMode
TestAdminSaveSelectionsRejectsDisabledMode — mode_id pointing at a disabled mode must not silently switch the user onto it.
internal/web/handlers_api_users_test.go:1533
Function
TestAdminSaveSelectionsUpdatesUserCatalogMode
============================================================================= TestAdminSaveSelectionsUpdatesUserCatalogMode — switching mode via the s
internal/web/handlers_api_users_test.go:1485
Function
TestAdminSaveSelectionsWithoutModeChangeSucceedsEvenIfCurrentModeDisabled
TestAdminSaveSelectionsWithoutModeChangeSucceedsEvenIfCurrentModeDisabled — the mode-switch UPDATE must only run when the request actually asks to swi
internal/web/handlers_api_users_test.go:1586
Function
TestAdminSettingsAPI
TestAdminSettingsAPI tests GET/PUT /api/admin/settings
internal/web/server_test.go:700
Function
TestAggregateDeduplicatesExact
(t *testing.T)
internal/prefixfilter/aggregate_test.go:39
Function
TestAggregateDropsSubsetOfLargerPrefix
(t *testing.T)
internal/prefixfilter/aggregate_test.go:47
Function
TestAggregateEmptyInput
(t *testing.T)
internal/prefixfilter/aggregate_test.go:152
Function
TestAggregateFullRangeCollapsesToDefaultRoute
(t *testing.T)
internal/prefixfilter/aggregate_test.go:128
Function
TestAggregateHandlesUnalignedAdjacentRange
(t *testing.T)
internal/prefixfilter/aggregate_test.go:101
Function
TestAggregateIPv4AndIPv6AreIndependent
(t *testing.T)
internal/prefixfilter/aggregate_test.go:120
Function
TestAggregateIPv6MergesAdjacent
(t *testing.T)
internal/prefixfilter/aggregate_test.go:112
Function
TestAggregateLeavesNonAdjacentPrefixesAlone
(t *testing.T)
internal/prefixfilter/aggregate_test.go:80
Function
TestAggregateMasksUnmaskedInput
(t *testing.T)
internal/prefixfilter/aggregate_test.go:32
Function
TestAggregateMatchesBruteForceCoverage
TestAggregateMatchesBruteForceCoverage randomly generates sets of CIDRs within a small address space (10.0.0.0/16) and verifies, via a brute-force per
internal/prefixfilter/aggregate_test.go:172
Function
TestAggregateMergesAdjacentEqualLengthPair
(t *testing.T)
internal/prefixfilter/aggregate_test.go:55
Function
TestAggregateMergesFourSiblingsIntoParent
(t *testing.T)
internal/prefixfilter/aggregate_test.go:63
Function
TestAggregateMergesMixedSizeAdjacentBlocks
(t *testing.T)
internal/prefixfilter/aggregate_test.go:71
Function
TestAggregateNetworksEmptyInput
(t *testing.T)
internal/store/networks_test.go:48
Function
TestAggregateNetworksIgnoresInputOrderAndSpacing
(t *testing.T)
internal/store/networks_test.go:30
Function
TestAggregateNetworksMasksAndSorts
(t *testing.T)
internal/store/networks_test.go:8
Function
TestAggregateNetworksMergesAdjacent
(t *testing.T)
internal/store/networks_test.go:19
Function
TestAggregateNetworksRejectsInvalidCIDR
(t *testing.T)
internal/store/networks_test.go:41
Function
TestAggregateNonPowerOfTwoUnionStaysMinimal
(t *testing.T)
internal/prefixfilter/aggregate_test.go:88
Function
TestAggregateOrderOfInputDoesNotMatter
(t *testing.T)
internal/prefixfilter/aggregate_test.go:144
Function
TestAggregateSingleHostAddress
(t *testing.T)
internal/prefixfilter/aggregate_test.go:136
Function
TestAggregateSkipsInvalidPrefix
(t *testing.T)
internal/prefixfilter/aggregate_test.go:159
Function
TestApiUsersNormalizeNetworks
============================================================================= TestApiUsersNormalizeNetworks — POST /api/admin/users/normalize-networks
internal/web/handlers_api_users_test.go:1926
Function
TestApiUsersNormalizeNetworksRejectsInvalidCIDR
(t *testing.T)
internal/web/handlers_api_users_test.go:1959
Function
TestApplyCollapsesOverlappingAllowEntries
(t *testing.T)
internal/prefixfilter/filter_test.go:49
Function
TestApplyDenyBroaderPrefixDifferentBaseAddr
(t *testing.T)
internal/prefixfilter/filter_test.go:76
Function
TestApplyEnforcesExpansionLimit
(t *testing.T)
internal/prefixfilter/filter_test.go:90
Function
TestApplySubtractsHostFromWidePrefix
(t *testing.T)
internal/prefixfilter/filter_test.go:8
Function
TestApplySupportsIPv6
(t *testing.T)
internal/prefixfilter/filter_test.go:61
Function
TestApplyUsesAllowListAsRestriction
(t *testing.T)
internal/prefixfilter/filter_test.go:30
Function
TestAuthenticateUserDisabledUser
(t *testing.T)
internal/store/store_auth_settings_test.go:194
Function
TestAuthenticateUserNonexistent
(t *testing.T)
internal/store/store_auth_settings_test.go:227
Function
TestAuthenticateUserValidCredentials
============================================================================= AuthenticateUser =======================================================
internal/store/store_auth_settings_test.go:138
Function
TestAuthenticateUserWrongPassword
(t *testing.T)
internal/store/store_auth_settings_test.go:170
Function
TestAutoRestoreEnvDefaultFalse
(t *testing.T)
internal/store/backup_test.go:264
Function
TestBGPPortValidation
(t *testing.T)
internal/settings/settings_test.go:694
Function
TestBGPPortValidationRejectsInvalidEnvValue
(t *testing.T)
internal/settings/settings_test.go:749
Function
TestBGPReloadClearsRestartPendingOnSuccess
(t *testing.T)
internal/web/server_test.go:1086
Function
TestBGPReloadReportsFailureAndKeepsRestartPending
(t *testing.T)
internal/web/server_test.go:1117
Function
TestBGPStatusReflectsRestartPendingAfterActiveDialChange
TestBGPStatusReflectsRestartPendingAfterActiveDialChange guards against active_dial being able to change an already-connected peer's dial mode (buildP
internal/web/server_test.go:1056
Function
TestBGPStatusReflectsRestartPendingAfterSettingChange
(t *testing.T)
internal/web/server_test.go:1021
Function
TestBGPStatusReflectsSpeakerHealth
============================================================================= BGP status/reload API ==================================================
internal/web/server_test.go:981
Function
TestBackupConfigDefaults
(t *testing.T)
internal/store/backup_test.go:17
Function
TestBackupCreatedWhenMigrationsPending
(t *testing.T)
internal/store/backup_test.go:36
Function
TestBackupDirAutoCreated
(t *testing.T)
internal/store/backup_test.go:204
Function
TestBackupNotCreatedOnFreshInstall
(t *testing.T)
internal/store/backup_test.go:178
Function
TestBackupNotCreatedWhenDisabled
(t *testing.T)
internal/store/backup_test.go:153
Function
TestBackupNotCreatedWhenUpToDate
(t *testing.T)
internal/store/backup_test.go:116
Function
TestBuildRouteCarriesCommunities
(t *testing.T)
internal/bgp/manager_test.go:51
Function
TestBuildRouteHasUserCommunityButNotOtherUser
============================================================================= Community export filter tests (Part B) =================================
internal/bgp/manager_test.go:249
Function
TestBuildRouteHonorsUserNextHop
(t *testing.T)
internal/bgp/manager_test.go:97
Function
TestBuildRouteIPv6NoPanic
(t *testing.T)
internal/bgp/manager_test.go:342
Function
TestBuildRouteIncludesCategoryAndServiceCommunities
(t *testing.T)
internal/bgp/manager_test.go:286
Function
TestBuildRouteSkipsCommunityForUnknownCategory
(t *testing.T)
internal/bgp/manager_test.go:319
Function
TestBuiltInAdapterVersionIsPerStore
TestBuiltInAdapterVersionIsPerStore guards against the built-in adapter version map being a package-level global: two Store instances opened in the sa
internal/store/adapter_fork_test.go:377
Function
TestBuiltinAdapterAllowedHostsResolvesForks
TestBuiltinAdapterAllowedHostsResolvesForks guards against a bug where a fork of a built-in adapter (e.g. IPRanges) didn't inherit the built-in's decl
internal/store/adapter_fork_test.go:340
Function
TestBuiltinAdapterHasNameAndForkedVersion
(t *testing.T)
internal/store/adapter_fork_test.go:98
Function
TestCatalogModeMigrationPreservesExistingSelections
(t *testing.T)
internal/store/009_modes_test.go:13
Function
TestCatalogModeMigrationReusesExistingIPRangesFeeds
(t *testing.T)
internal/store/009_modes_test.go:82
Function
TestCatalogModesKeepSelectionsAndRoutesIsolated
(t *testing.T)
internal/store/catalog_test.go:11
Function
TestCategoryPrefixCounts
(t *testing.T)
internal/store/store_auth_settings_test.go:802
Function
TestCircuitBreakerManager
(t *testing.T)
internal/retry/circuitbreaker_test.go:201
Function
TestCircuitBreaker_ClosedState
(t *testing.T)
internal/retry/circuitbreaker_test.go:11
Function
TestCircuitBreaker_HalfOpenFailure
(t *testing.T)
internal/retry/circuitbreaker_test.go:133
Function
TestCircuitBreaker_HalfOpenRecovery
(t *testing.T)
internal/retry/circuitbreaker_test.go:77
Function
TestCircuitBreaker_OpenOnFailures
(t *testing.T)
internal/retry/circuitbreaker_test.go:36
Function
TestCircuitBreaker_Reset
(t *testing.T)
internal/retry/circuitbreaker_test.go:165
Function
TestClientIP
============================================================================= TestClientIP — X-Forwarded-For may contain a client-supplied prefix; onl
internal/web/middleware_test.go:18
Function
TestComplexSetting_Env_RunsValidator
TestComplexSetting_Env_RunsValidator mirrors TestSimpleSetting_Env_RunsValidator for newComplex: a validator must run against the env var's value too,
internal/settings/setting_test.go:584
Function
TestComplexSetting_JSON_Env
(t *testing.T)
internal/settings/setting_test.go:645
Function
TestComplexSetting_JSON_RawString
(t *testing.T)
internal/settings/setting_test.go:629
Function
TestComplexSetting_New_DB
(t *testing.T)
internal/settings/setting_test.go:550
Function
TestComplexSetting_New_Default
============================================================================= complexSetting tests ===================================================
internal/settings/setting_test.go:524
Function
TestComplexSetting_New_Env
(t *testing.T)
internal/settings/setting_test.go:535
Function
TestComplexSetting_New_InvalidDBFallsBack
(t *testing.T)
internal/settings/setting_test.go:561
Function
TestComplexSetting_New_InvalidEnv
(t *testing.T)
internal/settings/setting_test.go:572
Function
TestComplexSetting_OnChange
(t *testing.T)
internal/settings/setting_test.go:729
Function
TestComplexSetting_Reset
(t *testing.T)
internal/settings/setting_test.go:662
Function
TestComplexSetting_ResetOnEnv
(t *testing.T)
internal/settings/setting_test.go:705
Function
TestComplexSetting_Set
(t *testing.T)
internal/settings/setting_test.go:599
Function
TestComplexSetting_SetOnEnv
(t *testing.T)
internal/settings/setting_test.go:717
← previous
next →
701–800 of 1,274, ranked by callers