MCPcopy Create free account

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

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

FunctionTestJavaScriptAdapter_HTTPRetry
(t *testing.T)
internal/feeds/retry_integration_test.go:14
FunctionTestKeepaliveLoopSurvivesStaleDeadline
============================================================================= TestKeepaliveLoopSurvivesStaleDeadline — keepaliveLoop's Write shares th
internal/bgp/peer_keepalive_test.go:21
FunctionTestKeepaliveMaintainsSession
============================================================================= Test 11: Keepalive maintains session ===================================
internal/bgp/session_test.go:655
FunctionTestLargeCommunitiesRoundTrip
(t *testing.T)
internal/bgp/wire_test.go:484
FunctionTestLegacyOpenCCKFeedCategory
(t *testing.T)
internal/feeds/feeds_test.go:69
FunctionTestLogFormatParsing
(t *testing.T)
internal/logging/logging_test.go:51
FunctionTestLogFormatValidation
TestLogFormatValidation mirrors TestLogLevelValidation for log_format — internal/logging.parseLogFormat only recognizes "json"/"text" (case-insensitiv
internal/settings/settings_test.go:966
FunctionTestLogFormatValidationRejectsInvalidEnvValue
(t *testing.T)
internal/settings/settings_test.go:984
FunctionTestLogLevelParsing
(t *testing.T)
internal/logging/logging_test.go:25
FunctionTestLogLevelValidation
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
FunctionTestLogLevelValidationRejectsInvalidEnvValue
(t *testing.T)
internal/settings/settings_test.go:955
FunctionTestLoggerCreation
(t *testing.T)
internal/logging/logging_test.go:11
FunctionTestLoginCookieExpiresWithMaxAge
============================================================================= TestLoginCookieExpiresWithMaxAge — when SessionMaxAge > 0, the login coo
internal/web/handlers_api_auth_test.go:76
FunctionTestLoginCookieExpiresWithZeroMaxAge
============================================================================= TestLoginCookieExpiresWithZeroMaxAge — when SessionMaxAge is 0, the logi
internal/web/handlers_api_auth_test.go:21
FunctionTestMainLoopSendsNotificationOnHoldTimerExpiry
============================================================================= TestMainLoopSendsNotificationOnHoldTimerExpiry — RFC 4271 requires a NOT
internal/bgp/peer_fsm_test.go:23
FunctionTestManagerStartsWithoutPeers
(t *testing.T)
internal/bgp/manager_test.go:135
FunctionTestManagerStatusReportsStartFailure
(t *testing.T)
internal/bgp/manager_test.go:159
FunctionTestMaxForkedAdapterSuffix
(t *testing.T)
internal/store/adapter_fork_test.go:221
FunctionTestMetadataURL
(t *testing.T)
internal/feeds/feeds_test.go:61
FunctionTestMigrateFreshDatabase
(t *testing.T)
internal/store/001_fresh_test.go:13
FunctionTestMigrateLegacyPythonDatabaseDropsOpenCCKFeedCategorySelection
(t *testing.T)
internal/store/007_drop_legacy_test.go:13
FunctionTestMigrateLegacyPythonDatabaseDropsOrphanSelections
(t *testing.T)
internal/store/008_drop_orphan_test.go:13
FunctionTestMigrateLegacyPythonDatabasePreservesData
(t *testing.T)
internal/store/legacy_test.go:13
FunctionTestMigration14AddsWebAuthAndUserCredentials
============================================================================= Migration 14 — web_auth column + user_credentials table ================
internal/store/store_auth_settings_test.go:14
FunctionTestMigration15AddsAppSettings
============================================================================= Migration 15 — app_settings table ======================================
internal/store/store_auth_settings_test.go:94
FunctionTestMigration20FeedAdapterUpgrade
TestMigration20FeedAdapterUpgrade verifies that migration 20 adds the builtin_version and is_customized columns to feed_adapters.
internal/store/020_m2m_test.go:329
FunctionTestMigration20Idempotency
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
FunctionTestMigration20NoTxSQLFailureRollsBack
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
FunctionTestMigration20PreservesAdapterCustomizations
TestMigration20PreservesAdapterCustomizations verifies that migration 20 and seedBuiltInAdapters do NOT overwrite admin-customized built-in adapter so
internal/store/020_m2m_test.go:492
FunctionTestMigration24AdapterForkColumns
(t *testing.T)
internal/store/adapter_fork_test.go:9
FunctionTestMigration30ExcludesDisabledUsersFromOverlapResolution
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
FunctionTestMigration30IgnoresLoginModeNetworks
(t *testing.T)
internal/store/030_dedupe_overlapping_networks_test.go:137
FunctionTestMigration30KeepsLowerUserIDOnExactDuplicateTie
(t *testing.T)
internal/store/030_dedupe_overlapping_networks_test.go:115
FunctionTestMigration30KeepsMoreSpecificPrefixOnOverlap
(t *testing.T)
internal/store/030_dedupe_overlapping_networks_test.go:95
FunctionTestMigration30LeavesNonOverlappingNetworksAlone
(t *testing.T)
internal/store/030_dedupe_overlapping_networks_test.go:160
FunctionTestMigration31DropsKeyColumn
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
FunctionTestMigration31IdempotentAfterCrash
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
FunctionTestMigration31IdempotentAfterCrashBetweenDropAndRename
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
FunctionTestMigration32FinishesAfterCrashBetweenDropAndRename
(t *testing.T)
internal/store/032_normalize_catalog_test.go:118
FunctionTestMigration32RemapsCatalogToNumericKeys
(t *testing.T)
internal/store/032_normalize_catalog_test.go:99
FunctionTestMigration33ConvertsUsersToBinaryAndEnums
(t *testing.T)
internal/store/033_binary_users_test.go:45
FunctionTestMigration34ConvertsTimestampsAndDropsModeKey
(t *testing.T)
internal/store/034_epoch_timestamps_test.go:14
FunctionTestMigration35ConvertsSnapshotJSONToCounts
(t *testing.T)
internal/store/035_feed_snapshot_counts_test.go:15
FunctionTestMigrationDeduplicatesFeedsWithoutLosingCatalog
(t *testing.T)
internal/store/004_dedup_test.go:12
FunctionTestMigrationForkedFromToInteger
(t *testing.T)
internal/store/adapter_fork_test.go:162
FunctionTestMigrationPreservesLegacyFilterOverrideMode
(t *testing.T)
internal/store/005_filters_test.go:13
FunctionTestMigrationReopenPreservesData
TestMigrationReopenPreservesData verifies that re-opening a fully migrated database preserves all data.
internal/store/reopen_test.go:14
FunctionTestModeCommunities
============================================================================= TestModeCommunities — community CRUD: generate, get, put, reset ========
internal/web/handlers_api_modes_test.go:293
FunctionTestModeCommunitiesGroupAutoValueMatchesGeneration
============================================================================= TestModeGetNotFound — 404 for non-existent mode ========================
internal/web/handlers_api_modes_test.go:494
FunctionTestModeDeleteNotFound
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
FunctionTestModeFeedReplaceAtomic
============================================================================= TestModeFeedReplaceAtomic — feed replacement uses a transaction: on inva
internal/web/handlers_api_modes_test.go:671
FunctionTestModeFeedsAssign
============================================================================= TestModeFeedsAssign — assign feeds to mode and verify ==================
internal/web/handlers_api_modes_test.go:201
FunctionTestModeFeedsSetNoRollbackWarning
============================================================================= TestModeFeedsSetNoRollbackWarning — verifies no rollback warning is logg
internal/web/handlers_api_modes_test.go:746
FunctionTestModeGetNotFound
(t *testing.T)
internal/web/handlers_api_modes_test.go:618
FunctionTestModesCRUD
============================================================================= TestModesCRUD — create, read, update, delete lifecycle =================
internal/web/handlers_api_modes_test.go:62
FunctionTestModesCreateRejectsEmptyName
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
FunctionTestModesList
============================================================================= TestModesList — GET /api/admin/modes returns built-in modes ============
internal/web/handlers_api_modes_test.go:22
FunctionTestModesPartialUpdateEnabledOnly
============================================================================= TestModesPartialUpdateEnabledOnly — partial update only sets enabled, na
internal/web/handlers_api_modes_test.go:579
FunctionTestNewSettings_AllFieldsExist
(t *testing.T)
internal/settings/settings_test.go:11
FunctionTestNewSettings_DBValues
(t *testing.T)
internal/settings/settings_test.go:305
FunctionTestNewSettings_Defaults
(t *testing.T)
internal/settings/settings_test.go:262
FunctionTestNewSettings_EnvOverrides
(t *testing.T)
internal/settings/settings_test.go:289
FunctionTestNewSettings_InvalidEnv
(t *testing.T)
internal/settings/settings_test.go:322
FunctionTestNewSettings_LegacyBirdLocalAddressAlias
TestNewSettings_LegacyBirdLocalAddressAlias guards against a regression from the internal/config -> internal/settings rewrite: existing releases accep
internal/settings/settings_test.go:338
FunctionTestNewSettings_NewLocalAddressVarTakesPriorityOverLegacy
TestNewSettings_NewLocalAddressVarTakesPriorityOverLegacy guards the precedence direction: the new env var name must win when both are set.
internal/settings/settings_test.go:357
FunctionTestNoSettingIsBothDBAndEnvInaccessible
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
FunctionTestNoTwoSettingsShareANonEmptyDBKey
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
FunctionTestNonBuiltinCannotReset
(t *testing.T)
internal/store/adapter_fork_test.go:135
FunctionTestOpenIncludesAS4Capability
(t *testing.T)
internal/bgp/wire_test.go:231
FunctionTestOpenIncludesIPv6UnicastCapability
(t *testing.T)
internal/bgp/wire_test.go:143
FunctionTestParseCanonicalNormalizesAndDeduplicates
(t *testing.T)
internal/feeds/feeds_test.go:37
FunctionTestParseOpenCCKFlatUsesGroupLookup
(t *testing.T)
internal/feeds/feeds_test.go:49
FunctionTestParseSRS_EmptyConfigDefaultsCIDRs
(t *testing.T)
internal/feeds/srs_test.go:45
FunctionTestParseSRS_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
FunctionTestPasswordAuthCorrect
============================================================================= Test 9: Password authentication ========================================
internal/bgp/session_test.go:509
FunctionTestPasswordAuthCorrectIPv6
TestPasswordAuthCorrectIPv6: password auth over IPv6 session.
internal/bgp/session_test.go:1017
FunctionTestPasswordAuthWrong
(t *testing.T)
internal/bgp/session_test.go:522
FunctionTestPeerStateTransitions
============================================================================= Test 10: Peer state transitions ========================================
internal/bgp/session_test.go:579
FunctionTestPortValidation
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
FunctionTestPortValidationRejectsInvalidEnvValue
(t *testing.T)
internal/settings/settings_test.go:733
FunctionTestPortValidationRejectsNegativeEnvValue
(t *testing.T)
internal/settings/settings_test.go:741
FunctionTestPrefixCounts
(t *testing.T)
internal/store/store_auth_settings_test.go:838
FunctionTestPrefixEncodeDecode
(t *testing.T)
internal/bgp/wire_test.go:537
FunctionTestPruneAdapterBackupsIgnoresAllDigitLegacyKey
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
FunctionTestPruneAdapterBackupsSweepsLegacyKeyPrefixedFiles
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
FunctionTestPublicDialContextAllowsConfiguredProxy
(t *testing.T)
internal/feeds/feeds_test.go:365
FunctionTestPublicDialContextTriesAllPublicAddresses
(t *testing.T)
internal/feeds/feeds_test.go:332
FunctionTestPurgeUserSnapshots
============================================================================= TestPurgeUserSnapshots — insert 3 snapshots with different timestamps, p
internal/store/snapshots_test.go:94
FunctionTestRateLimitValidation
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
FunctionTestRateLimiterStillEnforcesLimit
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
FunctionTestRateLimiterSweepsStaleIPs
============================================================================= TestRateLimiterSweepsStaleIPs — limits only ever grew before this fix: e
internal/web/middleware_test.go:99
FunctionTestReadMessageErrors
(t *testing.T)
internal/bgp/wire_test.go:675
FunctionTestReconcileAssignsRoutesPerPeer
(t *testing.T)
internal/bgp/manager_test.go:386
FunctionTestReconcileClearsRoutesOnModeChange
(t *testing.T)
internal/bgp/manager_test.go:459
FunctionTestReconcileSkipsIPv6WithoutLocalAddress
(t *testing.T)
internal/bgp/manager_test.go:199
FunctionTestReconnect
============================================================================= Test 8: Reconnect after disconnect =====================================
internal/bgp/session_test.go:455
FunctionTestReconnectIPv6
TestReconnectIPv6: reconnect over IPv6 session.
internal/bgp/session_test.go:1050
FunctionTestRecordFeedSnapshotDisabled
============================================================================= TestRecordFeedSnapshotDisabled — RecordFeedSnapshot with metrics disable
internal/store/snapshots_test.go:252
FunctionTestRecordFeedSnapshotEnabled
============================================================================= TestRecordFeedSnapshotEnabled — RecordFeedSnapshot with metrics enabled
internal/store/snapshots_test.go:212
FunctionTestRecordUserSnapshotDisabled
============================================================================= TestRecordUserSnapshotDisabled — RecordUserSnapshot with metrics disable
internal/store/snapshots_test.go:329
← previousnext →901–1,000 of 1,274, ranked by callers