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
TestJavaScriptAdapter_HTTPRetry
(t *testing.T)
internal/feeds/retry_integration_test.go:14
Function
TestKeepaliveLoopSurvivesStaleDeadline
============================================================================= TestKeepaliveLoopSurvivesStaleDeadline — keepaliveLoop's Write shares th
internal/bgp/peer_keepalive_test.go:21
Function
TestKeepaliveMaintainsSession
============================================================================= Test 11: Keepalive maintains session ===================================
internal/bgp/session_test.go:655
Function
TestLargeCommunitiesRoundTrip
(t *testing.T)
internal/bgp/wire_test.go:484
Function
TestLegacyOpenCCKFeedCategory
(t *testing.T)
internal/feeds/feeds_test.go:69
Function
TestLogFormatParsing
(t *testing.T)
internal/logging/logging_test.go:51
Function
TestLogFormatValidation
TestLogFormatValidation mirrors TestLogLevelValidation for log_format — internal/logging.parseLogFormat only recognizes "json"/"text" (case-insensitiv
internal/settings/settings_test.go:966
Function
TestLogFormatValidationRejectsInvalidEnvValue
(t *testing.T)
internal/settings/settings_test.go:984
Function
TestLogLevelParsing
(t *testing.T)
internal/logging/logging_test.go:25
Function
TestLogLevelValidation
TestLogLevelValidation guards against log_level being settable to a value internal/logging.parseLogLevel doesn't recognize — it would silently fall ba
internal/settings/settings_test.go:937
Function
TestLogLevelValidationRejectsInvalidEnvValue
(t *testing.T)
internal/settings/settings_test.go:955
Function
TestLoggerCreation
(t *testing.T)
internal/logging/logging_test.go:11
Function
TestLoginCookieExpiresWithMaxAge
============================================================================= TestLoginCookieExpiresWithMaxAge — when SessionMaxAge > 0, the login coo
internal/web/handlers_api_auth_test.go:76
Function
TestLoginCookieExpiresWithZeroMaxAge
============================================================================= TestLoginCookieExpiresWithZeroMaxAge — when SessionMaxAge is 0, the logi
internal/web/handlers_api_auth_test.go:21
Function
TestMainLoopSendsNotificationOnHoldTimerExpiry
============================================================================= TestMainLoopSendsNotificationOnHoldTimerExpiry — RFC 4271 requires a NOT
internal/bgp/peer_fsm_test.go:23
Function
TestManagerStartsWithoutPeers
(t *testing.T)
internal/bgp/manager_test.go:135
Function
TestManagerStatusReportsStartFailure
(t *testing.T)
internal/bgp/manager_test.go:159
Function
TestMaxForkedAdapterSuffix
(t *testing.T)
internal/store/adapter_fork_test.go:221
Function
TestMetadataURL
(t *testing.T)
internal/feeds/feeds_test.go:61
Function
TestMigrateFreshDatabase
(t *testing.T)
internal/store/001_fresh_test.go:13
Function
TestMigrateLegacyPythonDatabaseDropsOpenCCKFeedCategorySelection
(t *testing.T)
internal/store/007_drop_legacy_test.go:13
Function
TestMigrateLegacyPythonDatabaseDropsOrphanSelections
(t *testing.T)
internal/store/008_drop_orphan_test.go:13
Function
TestMigrateLegacyPythonDatabasePreservesData
(t *testing.T)
internal/store/legacy_test.go:13
Function
TestMigration14AddsWebAuthAndUserCredentials
============================================================================= Migration 14 — web_auth column + user_credentials table ================
internal/store/store_auth_settings_test.go:14
Function
TestMigration15AddsAppSettings
============================================================================= Migration 15 — app_settings table ======================================
internal/store/store_auth_settings_test.go:94
Function
TestMigration20FeedAdapterUpgrade
TestMigration20FeedAdapterUpgrade verifies that migration 20 adds the builtin_version and is_customized columns to feed_adapters.
internal/store/020_m2m_test.go:329
Function
TestMigration20Idempotency
TestMigration20Idempotency verifies that migration 20 can be re-run after a crash that left the DB in an intermediate state. The NoTxSQL in migration
internal/store/020_m2m_test.go:20
Function
TestMigration20NoTxSQLFailureRollsBack
TestMigration20NoTxSQLFailureRollsBack verifies that if migration 20's NoTxSQL fails, version 20 is NOT recorded in schema_migrations. This prevents t
internal/store/020_m2m_test.go:189
Function
TestMigration20PreservesAdapterCustomizations
TestMigration20PreservesAdapterCustomizations verifies that migration 20 and seedBuiltInAdapters do NOT overwrite admin-customized built-in adapter so
internal/store/020_m2m_test.go:492
Function
TestMigration24AdapterForkColumns
(t *testing.T)
internal/store/adapter_fork_test.go:9
Function
TestMigration30ExcludesDisabledUsersFromOverlapResolution
TestMigration30ExcludesDisabledUsersFromOverlapResolution guards against a bug where a disabled user's narrower network could "win" the overlap compar
internal/store/030_dedupe_overlapping_networks_test.go:189
Function
TestMigration30IgnoresLoginModeNetworks
(t *testing.T)
internal/store/030_dedupe_overlapping_networks_test.go:137
Function
TestMigration30KeepsLowerUserIDOnExactDuplicateTie
(t *testing.T)
internal/store/030_dedupe_overlapping_networks_test.go:115
Function
TestMigration30KeepsMoreSpecificPrefixOnOverlap
(t *testing.T)
internal/store/030_dedupe_overlapping_networks_test.go:95
Function
TestMigration30LeavesNonOverlappingNetworksAlone
(t *testing.T)
internal/store/030_dedupe_overlapping_networks_test.go:160
Function
TestMigration31DropsKeyColumn
TestMigration31DropsKeyColumn verifies the normal, uninterrupted rebuild: key is gone, both rows survive with their data intact.
internal/store/031_drop_adapter_key_test.go:40
Function
TestMigration31IdempotentAfterCrash
TestMigration31IdempotentAfterCrash simulates a process kill between the CREATE TABLE feed_adapters_new and DROP TABLE feed_adapters steps: on retry,
internal/store/031_drop_adapter_key_test.go:86
Function
TestMigration31IdempotentAfterCrashBetweenDropAndRename
TestMigration31IdempotentAfterCrashBetweenDropAndRename simulates a process kill after DROP TABLE feed_adapters succeeded but before the RENAME commit
internal/store/031_drop_adapter_key_test.go:157
Function
TestMigration32FinishesAfterCrashBetweenDropAndRename
(t *testing.T)
internal/store/032_normalize_catalog_test.go:118
Function
TestMigration32RemapsCatalogToNumericKeys
(t *testing.T)
internal/store/032_normalize_catalog_test.go:99
Function
TestMigration33ConvertsUsersToBinaryAndEnums
(t *testing.T)
internal/store/033_binary_users_test.go:45
Function
TestMigration34ConvertsTimestampsAndDropsModeKey
(t *testing.T)
internal/store/034_epoch_timestamps_test.go:14
Function
TestMigration35ConvertsSnapshotJSONToCounts
(t *testing.T)
internal/store/035_feed_snapshot_counts_test.go:15
Function
TestMigrationDeduplicatesFeedsWithoutLosingCatalog
(t *testing.T)
internal/store/004_dedup_test.go:12
Function
TestMigrationForkedFromToInteger
(t *testing.T)
internal/store/adapter_fork_test.go:162
Function
TestMigrationPreservesLegacyFilterOverrideMode
(t *testing.T)
internal/store/005_filters_test.go:13
Function
TestMigrationReopenPreservesData
TestMigrationReopenPreservesData verifies that re-opening a fully migrated database preserves all data.
internal/store/reopen_test.go:14
Function
TestModeCommunities
============================================================================= TestModeCommunities — community CRUD: generate, get, put, reset ========
internal/web/handlers_api_modes_test.go:293
Function
TestModeCommunitiesGroupAutoValueMatchesGeneration
============================================================================= TestModeGetNotFound — 404 for non-existent mode ========================
internal/web/handlers_api_modes_test.go:494
Function
TestModeDeleteNotFound
TestModeDeleteNotFound guards against DeleteCatalogMode's sql.ErrNoRows for a nonexistent (but >3, i.e. not built-in) mode ID surfacing as a raw 500 i
internal/web/handlers_api_modes_test.go:634
Function
TestModeFeedReplaceAtomic
============================================================================= TestModeFeedReplaceAtomic — feed replacement uses a transaction: on inva
internal/web/handlers_api_modes_test.go:671
Function
TestModeFeedsAssign
============================================================================= TestModeFeedsAssign — assign feeds to mode and verify ==================
internal/web/handlers_api_modes_test.go:201
Function
TestModeFeedsSetNoRollbackWarning
============================================================================= TestModeFeedsSetNoRollbackWarning — verifies no rollback warning is logg
internal/web/handlers_api_modes_test.go:746
Function
TestModeGetNotFound
(t *testing.T)
internal/web/handlers_api_modes_test.go:618
Function
TestModesCRUD
============================================================================= TestModesCRUD — create, read, update, delete lifecycle =================
internal/web/handlers_api_modes_test.go:62
Function
TestModesCreateRejectsEmptyName
TestModesCreateRejectsEmptyName mirrors apiModesUpdate's existing empty-name check, which apiModesCreate lacked — without it, POSTing an empty name cr
internal/web/handlers_api_modes_test.go:652
Function
TestModesList
============================================================================= TestModesList — GET /api/admin/modes returns built-in modes ============
internal/web/handlers_api_modes_test.go:22
Function
TestModesPartialUpdateEnabledOnly
============================================================================= TestModesPartialUpdateEnabledOnly — partial update only sets enabled, na
internal/web/handlers_api_modes_test.go:579
Function
TestNewSettings_AllFieldsExist
(t *testing.T)
internal/settings/settings_test.go:11
Function
TestNewSettings_DBValues
(t *testing.T)
internal/settings/settings_test.go:305
Function
TestNewSettings_Defaults
(t *testing.T)
internal/settings/settings_test.go:262
Function
TestNewSettings_EnvOverrides
(t *testing.T)
internal/settings/settings_test.go:289
Function
TestNewSettings_InvalidEnv
(t *testing.T)
internal/settings/settings_test.go:322
Function
TestNewSettings_LegacyBirdLocalAddressAlias
TestNewSettings_LegacyBirdLocalAddressAlias guards against a regression from the internal/config -> internal/settings rewrite: existing releases accep
internal/settings/settings_test.go:338
Function
TestNewSettings_NewLocalAddressVarTakesPriorityOverLegacy
TestNewSettings_NewLocalAddressVarTakesPriorityOverLegacy guards the precedence direction: the new env var name must win when both are set.
internal/settings/settings_test.go:357
Function
TestNoSettingIsBothDBAndEnvInaccessible
TestNoSettingIsBothDBAndEnvInaccessible guards against a setting being defined with both dbKey and envVar empty. Such a setting would be a disguised c
internal/settings/settings_test.go:156
Function
TestNoTwoSettingsShareANonEmptyDBKey
TestNoTwoSettingsShareANonEmptyDBKey guards against a copy-paste mistake giving two DB-backed settings the same real dbKey (which would cause the same
internal/settings/settings_test.go:230
Function
TestNonBuiltinCannotReset
(t *testing.T)
internal/store/adapter_fork_test.go:135
Function
TestOpenIncludesAS4Capability
(t *testing.T)
internal/bgp/wire_test.go:231
Function
TestOpenIncludesIPv6UnicastCapability
(t *testing.T)
internal/bgp/wire_test.go:143
Function
TestParseCanonicalNormalizesAndDeduplicates
(t *testing.T)
internal/feeds/feeds_test.go:37
Function
TestParseOpenCCKFlatUsesGroupLookup
(t *testing.T)
internal/feeds/feeds_test.go:49
Function
TestParseSRS_EmptyConfigDefaultsCIDRs
(t *testing.T)
internal/feeds/srs_test.go:45
Function
TestParseSRS_GeoIP_RU
TestParseSRS_GeoIP_RU tests against a real SRS v1 file downloaded to runtime/. The runtime/ directory is gitignored; this test is skipped in CI. For C
internal/feeds/srs_test.go:18
Function
TestPasswordAuthCorrect
============================================================================= Test 9: Password authentication ========================================
internal/bgp/session_test.go:509
Function
TestPasswordAuthCorrectIPv6
TestPasswordAuthCorrectIPv6: password auth over IPv6 session.
internal/bgp/session_test.go:1017
Function
TestPasswordAuthWrong
(t *testing.T)
internal/bgp/session_test.go:522
Function
TestPeerStateTransitions
============================================================================= Test 10: Peer state transitions ========================================
internal/bgp/session_test.go:579
Function
TestPortValidation
TestPortValidation — unlike BGPPort (a DB-backed setting), Port is intentionally env-only (dbKey=""), so Set must reject every value, valid or not, ra
internal/settings/settings_test.go:719
Function
TestPortValidationRejectsInvalidEnvValue
(t *testing.T)
internal/settings/settings_test.go:733
Function
TestPortValidationRejectsNegativeEnvValue
(t *testing.T)
internal/settings/settings_test.go:741
Function
TestPrefixCounts
(t *testing.T)
internal/store/store_auth_settings_test.go:838
Function
TestPrefixEncodeDecode
(t *testing.T)
internal/bgp/wire_test.go:537
Function
TestPruneAdapterBackupsIgnoresAllDigitLegacyKey
TestPruneAdapterBackupsIgnoresAllDigitLegacyKey guards against an adapter named entirely with digits (e.g. "42") producing a legacy key that's indisti
internal/web/handlers_api_adapters_test.go:87
Function
TestPruneAdapterBackupsSweepsLegacyKeyPrefixedFiles
TestPruneAdapterBackupsSweepsLegacyKeyPrefixedFiles guards against backups written before feed_adapters.key was dropped (named {key}_r{rev}_{ts}.js) s
internal/web/handlers_api_adapters_test.go:36
Function
TestPublicDialContextAllowsConfiguredProxy
(t *testing.T)
internal/feeds/feeds_test.go:365
Function
TestPublicDialContextTriesAllPublicAddresses
(t *testing.T)
internal/feeds/feeds_test.go:332
Function
TestPurgeUserSnapshots
============================================================================= TestPurgeUserSnapshots — insert 3 snapshots with different timestamps, p
internal/store/snapshots_test.go:94
Function
TestRateLimitValidation
TestRateLimitValidation guards against WDBGP_RATE_LIMIT_LOGIN=0 (or the admin equivalent) silently disabling brute-force protection — the documented r
internal/settings/settings_test.go:853
Function
TestRateLimiterStillEnforcesLimit
TestRateLimiterStillEnforcesLimit is a basic regression check that the sweep doesn't change actual allow/deny behavior within a window.
internal/web/middleware_test.go:137
Function
TestRateLimiterSweepsStaleIPs
============================================================================= TestRateLimiterSweepsStaleIPs — limits only ever grew before this fix: e
internal/web/middleware_test.go:99
Function
TestReadMessageErrors
(t *testing.T)
internal/bgp/wire_test.go:675
Function
TestReconcileAssignsRoutesPerPeer
(t *testing.T)
internal/bgp/manager_test.go:386
Function
TestReconcileClearsRoutesOnModeChange
(t *testing.T)
internal/bgp/manager_test.go:459
Function
TestReconcileSkipsIPv6WithoutLocalAddress
(t *testing.T)
internal/bgp/manager_test.go:199
Function
TestReconnect
============================================================================= Test 8: Reconnect after disconnect =====================================
internal/bgp/session_test.go:455
Function
TestReconnectIPv6
TestReconnectIPv6: reconnect over IPv6 session.
internal/bgp/session_test.go:1050
Function
TestRecordFeedSnapshotDisabled
============================================================================= TestRecordFeedSnapshotDisabled — RecordFeedSnapshot with metrics disable
internal/store/snapshots_test.go:252
Function
TestRecordFeedSnapshotEnabled
============================================================================= TestRecordFeedSnapshotEnabled — RecordFeedSnapshot with metrics enabled
internal/store/snapshots_test.go:212
Function
TestRecordUserSnapshotDisabled
============================================================================= TestRecordUserSnapshotDisabled — RecordUserSnapshot with metrics disable
internal/store/snapshots_test.go:329
← previous
next →
901–1,000 of 1,274, ranked by callers