MCPcopy Create free account

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

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

FunctionTestAdapterHTTPRejectsRedirectToUnlistedHost
(t *testing.T)
internal/feeds/feeds_test.go:310
FunctionTestAdaptersDeleteNotFound
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
FunctionTestAddFeedWithModeAssignsOnSuccess
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
FunctionTestAddFeedWithModeRollsBackOnModeAssignmentFailure
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
FunctionTestAddUserAcceptsSharedIPWithPassword
(t *testing.T)
internal/web/server_test.go:531
FunctionTestAddUserAcceptsUniqueIPWithoutPassword
(t *testing.T)
internal/web/server_test.go:393
FunctionTestAddUserDynamicPeersNoPasswordRequired
(t *testing.T)
internal/web/server_test.go:417
FunctionTestAddUserRejectsDuplicateDynamicPeerASN
(t *testing.T)
internal/web/server_test.go:456
FunctionTestAddUserRejectsSameIPAndSameASN
============================================================================= Peer uniqueness tests ==================================================
internal/web/server_test.go:358
FunctionTestAddUserRejectsSharedIPWithoutPasswordWhenRequired
(t *testing.T)
internal/web/server_test.go:495
FunctionTestAddUserWithWebAuthBoth
(t *testing.T)
internal/store/store_auth_settings_test.go:385
FunctionTestAddUserWithWebAuthLogin
============================================================================= AddUser / UpdateUser with web_auth =====================================
internal/store/store_auth_settings_test.go:363
FunctionTestAdminLoginAPI
============================================================================= API tests ==============================================================
internal/web/server_test.go:649
FunctionTestAdminLogoutAPI
TestAdminLogoutAPI tests POST /api/admin/logout
internal/web/server_test.go:936
FunctionTestAdminSaveSelectionsPreservesHidden
============================================================================= TestAdminSaveSelectionsPreservesHidden — admin saves selections, disable
internal/web/handlers_api_users_test.go:1372
FunctionTestAdminSaveSelectionsRejectsDisabledMode
TestAdminSaveSelectionsRejectsDisabledMode — mode_id pointing at a disabled mode must not silently switch the user onto it.
internal/web/handlers_api_users_test.go:1533
FunctionTestAdminSaveSelectionsUpdatesUserCatalogMode
============================================================================= TestAdminSaveSelectionsUpdatesUserCatalogMode — switching mode via the s
internal/web/handlers_api_users_test.go:1485
FunctionTestAdminSaveSelectionsWithoutModeChangeSucceedsEvenIfCurrentModeDisabled
TestAdminSaveSelectionsWithoutModeChangeSucceedsEvenIfCurrentModeDisabled — the mode-switch UPDATE must only run when the request actually asks to swi
internal/web/handlers_api_users_test.go:1586
FunctionTestAdminSettingsAPI
TestAdminSettingsAPI tests GET/PUT /api/admin/settings
internal/web/server_test.go:700
FunctionTestAggregateDeduplicatesExact
(t *testing.T)
internal/prefixfilter/aggregate_test.go:39
FunctionTestAggregateDropsSubsetOfLargerPrefix
(t *testing.T)
internal/prefixfilter/aggregate_test.go:47
FunctionTestAggregateEmptyInput
(t *testing.T)
internal/prefixfilter/aggregate_test.go:152
FunctionTestAggregateFullRangeCollapsesToDefaultRoute
(t *testing.T)
internal/prefixfilter/aggregate_test.go:128
FunctionTestAggregateHandlesUnalignedAdjacentRange
(t *testing.T)
internal/prefixfilter/aggregate_test.go:101
FunctionTestAggregateIPv4AndIPv6AreIndependent
(t *testing.T)
internal/prefixfilter/aggregate_test.go:120
FunctionTestAggregateIPv6MergesAdjacent
(t *testing.T)
internal/prefixfilter/aggregate_test.go:112
FunctionTestAggregateLeavesNonAdjacentPrefixesAlone
(t *testing.T)
internal/prefixfilter/aggregate_test.go:80
FunctionTestAggregateMasksUnmaskedInput
(t *testing.T)
internal/prefixfilter/aggregate_test.go:32
FunctionTestAggregateMatchesBruteForceCoverage
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
FunctionTestAggregateMergesAdjacentEqualLengthPair
(t *testing.T)
internal/prefixfilter/aggregate_test.go:55
FunctionTestAggregateMergesFourSiblingsIntoParent
(t *testing.T)
internal/prefixfilter/aggregate_test.go:63
FunctionTestAggregateMergesMixedSizeAdjacentBlocks
(t *testing.T)
internal/prefixfilter/aggregate_test.go:71
FunctionTestAggregateNetworksEmptyInput
(t *testing.T)
internal/store/networks_test.go:48
FunctionTestAggregateNetworksIgnoresInputOrderAndSpacing
(t *testing.T)
internal/store/networks_test.go:30
FunctionTestAggregateNetworksMasksAndSorts
(t *testing.T)
internal/store/networks_test.go:8
FunctionTestAggregateNetworksMergesAdjacent
(t *testing.T)
internal/store/networks_test.go:19
FunctionTestAggregateNetworksRejectsInvalidCIDR
(t *testing.T)
internal/store/networks_test.go:41
FunctionTestAggregateNonPowerOfTwoUnionStaysMinimal
(t *testing.T)
internal/prefixfilter/aggregate_test.go:88
FunctionTestAggregateOrderOfInputDoesNotMatter
(t *testing.T)
internal/prefixfilter/aggregate_test.go:144
FunctionTestAggregateSingleHostAddress
(t *testing.T)
internal/prefixfilter/aggregate_test.go:136
FunctionTestAggregateSkipsInvalidPrefix
(t *testing.T)
internal/prefixfilter/aggregate_test.go:159
FunctionTestApiUsersNormalizeNetworks
============================================================================= TestApiUsersNormalizeNetworks — POST /api/admin/users/normalize-networks
internal/web/handlers_api_users_test.go:1926
FunctionTestApiUsersNormalizeNetworksRejectsInvalidCIDR
(t *testing.T)
internal/web/handlers_api_users_test.go:1959
FunctionTestApplyCollapsesOverlappingAllowEntries
(t *testing.T)
internal/prefixfilter/filter_test.go:49
FunctionTestApplyDenyBroaderPrefixDifferentBaseAddr
(t *testing.T)
internal/prefixfilter/filter_test.go:76
FunctionTestApplyEnforcesExpansionLimit
(t *testing.T)
internal/prefixfilter/filter_test.go:90
FunctionTestApplySubtractsHostFromWidePrefix
(t *testing.T)
internal/prefixfilter/filter_test.go:8
FunctionTestApplySupportsIPv6
(t *testing.T)
internal/prefixfilter/filter_test.go:61
FunctionTestApplyUsesAllowListAsRestriction
(t *testing.T)
internal/prefixfilter/filter_test.go:30
FunctionTestAuthenticateUserDisabledUser
(t *testing.T)
internal/store/store_auth_settings_test.go:194
FunctionTestAuthenticateUserNonexistent
(t *testing.T)
internal/store/store_auth_settings_test.go:227
FunctionTestAuthenticateUserValidCredentials
============================================================================= AuthenticateUser =======================================================
internal/store/store_auth_settings_test.go:138
FunctionTestAuthenticateUserWrongPassword
(t *testing.T)
internal/store/store_auth_settings_test.go:170
FunctionTestAutoRestoreEnvDefaultFalse
(t *testing.T)
internal/store/backup_test.go:264
FunctionTestBGPPortValidation
(t *testing.T)
internal/settings/settings_test.go:694
FunctionTestBGPPortValidationRejectsInvalidEnvValue
(t *testing.T)
internal/settings/settings_test.go:749
FunctionTestBGPReloadClearsRestartPendingOnSuccess
(t *testing.T)
internal/web/server_test.go:1086
FunctionTestBGPReloadReportsFailureAndKeepsRestartPending
(t *testing.T)
internal/web/server_test.go:1117
FunctionTestBGPStatusReflectsRestartPendingAfterActiveDialChange
TestBGPStatusReflectsRestartPendingAfterActiveDialChange guards against active_dial being able to change an already-connected peer's dial mode (buildP
internal/web/server_test.go:1056
FunctionTestBGPStatusReflectsRestartPendingAfterSettingChange
(t *testing.T)
internal/web/server_test.go:1021
FunctionTestBGPStatusReflectsSpeakerHealth
============================================================================= BGP status/reload API ==================================================
internal/web/server_test.go:981
FunctionTestBackupConfigDefaults
(t *testing.T)
internal/store/backup_test.go:17
FunctionTestBackupCreatedWhenMigrationsPending
(t *testing.T)
internal/store/backup_test.go:36
FunctionTestBackupDirAutoCreated
(t *testing.T)
internal/store/backup_test.go:204
FunctionTestBackupNotCreatedOnFreshInstall
(t *testing.T)
internal/store/backup_test.go:178
FunctionTestBackupNotCreatedWhenDisabled
(t *testing.T)
internal/store/backup_test.go:153
FunctionTestBackupNotCreatedWhenUpToDate
(t *testing.T)
internal/store/backup_test.go:116
FunctionTestBuildRouteCarriesCommunities
(t *testing.T)
internal/bgp/manager_test.go:51
FunctionTestBuildRouteHasUserCommunityButNotOtherUser
============================================================================= Community export filter tests (Part B) =================================
internal/bgp/manager_test.go:249
FunctionTestBuildRouteHonorsUserNextHop
(t *testing.T)
internal/bgp/manager_test.go:97
FunctionTestBuildRouteIPv6NoPanic
(t *testing.T)
internal/bgp/manager_test.go:342
FunctionTestBuildRouteIncludesCategoryAndServiceCommunities
(t *testing.T)
internal/bgp/manager_test.go:286
FunctionTestBuildRouteSkipsCommunityForUnknownCategory
(t *testing.T)
internal/bgp/manager_test.go:319
FunctionTestBuiltInAdapterVersionIsPerStore
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
FunctionTestBuiltinAdapterAllowedHostsResolvesForks
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
FunctionTestBuiltinAdapterHasNameAndForkedVersion
(t *testing.T)
internal/store/adapter_fork_test.go:98
FunctionTestCatalogModeMigrationPreservesExistingSelections
(t *testing.T)
internal/store/009_modes_test.go:13
FunctionTestCatalogModeMigrationReusesExistingIPRangesFeeds
(t *testing.T)
internal/store/009_modes_test.go:82
FunctionTestCatalogModesKeepSelectionsAndRoutesIsolated
(t *testing.T)
internal/store/catalog_test.go:11
FunctionTestCategoryPrefixCounts
(t *testing.T)
internal/store/store_auth_settings_test.go:802
FunctionTestCircuitBreakerManager
(t *testing.T)
internal/retry/circuitbreaker_test.go:201
FunctionTestCircuitBreaker_ClosedState
(t *testing.T)
internal/retry/circuitbreaker_test.go:11
FunctionTestCircuitBreaker_HalfOpenFailure
(t *testing.T)
internal/retry/circuitbreaker_test.go:133
FunctionTestCircuitBreaker_HalfOpenRecovery
(t *testing.T)
internal/retry/circuitbreaker_test.go:77
FunctionTestCircuitBreaker_OpenOnFailures
(t *testing.T)
internal/retry/circuitbreaker_test.go:36
FunctionTestCircuitBreaker_Reset
(t *testing.T)
internal/retry/circuitbreaker_test.go:165
FunctionTestClientIP
============================================================================= TestClientIP — X-Forwarded-For may contain a client-supplied prefix; onl
internal/web/middleware_test.go:18
FunctionTestComplexSetting_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
FunctionTestComplexSetting_JSON_Env
(t *testing.T)
internal/settings/setting_test.go:645
FunctionTestComplexSetting_JSON_RawString
(t *testing.T)
internal/settings/setting_test.go:629
FunctionTestComplexSetting_New_DB
(t *testing.T)
internal/settings/setting_test.go:550
FunctionTestComplexSetting_New_Default
============================================================================= complexSetting tests ===================================================
internal/settings/setting_test.go:524
FunctionTestComplexSetting_New_Env
(t *testing.T)
internal/settings/setting_test.go:535
FunctionTestComplexSetting_New_InvalidDBFallsBack
(t *testing.T)
internal/settings/setting_test.go:561
FunctionTestComplexSetting_New_InvalidEnv
(t *testing.T)
internal/settings/setting_test.go:572
FunctionTestComplexSetting_OnChange
(t *testing.T)
internal/settings/setting_test.go:729
FunctionTestComplexSetting_Reset
(t *testing.T)
internal/settings/setting_test.go:662
FunctionTestComplexSetting_ResetOnEnv
(t *testing.T)
internal/settings/setting_test.go:705
FunctionTestComplexSetting_Set
(t *testing.T)
internal/settings/setting_test.go:599
FunctionTestComplexSetting_SetOnEnv
(t *testing.T)
internal/settings/setting_test.go:717
← previousnext →701–800 of 1,274, ranked by callers