MCPcopy Create free account

hub / github.com/EBWi11/AgentSmith-HUB / functions

Functions2,165 in github.com/EBWi11/AgentSmith-HUB

FunctionTestAgentStartReconcilesErrorRuntime
(t *testing.T)
src/agent/agent_reconcile_test.go:10
FunctionTestAliyunResolvedLingerRequiresSDKMinimum
(t *testing.T)
src/output/output_config_test.go:230
FunctionTestAliyunSLSConnection
TestAliyunSLSConnection tests the connection to Aliyun SLS service This method creates a temporary client to test connectivity without affecting exist
src/common/aliyun_sls.go:292
FunctionTestAliyunSLSLogstoreExists
TestAliyunSLSLogstoreExists tests if the specified logstore exists in the project
src/common/aliyun_sls.go:345
FunctionTestAppend_DynamicFieldSubstitution
============================================================ engine_utils.go — replaceFromRawPlaceholders via <append> ===============================
src/rules_engine/engine_coverage_test.go:233
FunctionTestAppend_DynamicFieldSubstitution_MissingField
(t *testing.T)
src/rules_engine/engine_coverage_test.go:259
FunctionTestAppend_EscapedPlaceholder
(t *testing.T)
src/rules_engine/engine_coverage_test.go:282
FunctionTestAppend_PluginBoolReturn
(t *testing.T)
src/rules_engine/engine_coverage_test.go:386
FunctionTestAppend_PluginInterfaceReturn
============================================================ engine_core.go — executeAppend with PLUGIN (covers GetPluginRealArgs interface path) ====
src/rules_engine/engine_coverage_test.go:366
FunctionTestAppend_PluginWithFieldReference
============================================================ engine_utils.go — convertPluginArgument and GetCheckDataWithTypeFromCache via plugin appe
src/rules_engine/engine_extra_coverage_test.go:277
FunctionTestAppend_PluginWithLiteralArgs
============================================================ GetPluginRealArgs — field-reference arg (Type=1) and data-copy arg (Type=2) =============
src/rules_engine/engine_coverage_test.go:410
FunctionTestBuildAPIURL
(t *testing.T)
src/local_plugin/threatbook/threatbook_test.go:174
FunctionTestBuildAliyunSLSFieldsStringifiesStructuredValues
(t *testing.T)
src/common/aliyun_sls_test.go:5
FunctionTestBuildDeferredProjectCommandsKeepsLatestCommandAndDropsPreDeleteIntent
(t *testing.T)
src/cluster/refactor_regression_test.go:74
FunctionTestBuildProjectPlansDeferExplicitProjectCommandAfterProjectStateSync
(t *testing.T)
src/cluster/refactor_regression_test.go:93
FunctionTestBuildStateKey
============================================================================ BuildStateKey Tests =====================================================
src/rules_engine/cep_test.go:1023
FunctionTestCEPStateManager_AbsenceKeyTracking
============================================================================ Absence Key Tracking Tests ==============================================
src/rules_engine/cep_test.go:916
FunctionTestCEPStateManager_AbsenceWheel_CatchUpMissedSlots
(t *testing.T)
src/rules_engine/cep_test.go:993
FunctionTestCEPStateManager_AbsenceWheel_KeyReuseNoStaleTrigger
(t *testing.T)
src/rules_engine/cep_test.go:948
FunctionTestCEPStateManager_AbsenceWheel_ReTrackUpdatesEntry
(t *testing.T)
src/rules_engine/cep_test.go:975
FunctionTestCEPStateManager_KeyLocksReleasedAfterUnlock
(t *testing.T)
src/rules_engine/cep_test.go:866
FunctionTestCEPStateManager_LocalCache_Delete
(t *testing.T)
src/rules_engine/cep_test.go:848
FunctionTestCEPStateManager_LocalCache_GetMissing
(t *testing.T)
src/rules_engine/cep_test.go:837
FunctionTestCEPStateManager_LocalCache_GetOrCreate
(t *testing.T)
src/rules_engine/cep_test.go:885
FunctionTestCEPStateManager_LocalCache_SetGet
############################################################################ PART 2: State Manager — Cache / Absence Tracking / Serialization ######
src/rules_engine/cep_test.go:807
FunctionTestCEP_AbsenceScanner_FullStart_EndToEnd
TestCEP_AbsenceScanner_FullStart_EndToEnd tests the absence pipeline with Start() running the real scanner ticker + goroutines.
src/rules_engine/cep_test.go:2835
FunctionTestCEP_AbsenceScanner_NewFromExisting_EndToEnd
TestCEP_AbsenceScanner_NewFromExisting_EndToEnd tests the absence pipeline using NewFromExisting (the production path for PNS instances).
src/rules_engine/cep_test.go:2884
FunctionTestCEP_AbsenceScanner_RealTimer_EndToEnd
TestCEP_AbsenceScanner_RealTimer_EndToEnd tests the full absence pipeline by directly calling EngineCheck + scanAbsenceTimeouts (no goroutines/tickers
src/rules_engine/cep_test.go:2742
FunctionTestCEP_BuildError_NoGroupBy
(t *testing.T)
src/rules_engine/cep_test.go:1462
FunctionTestCEP_BuildError_UndefinedEventInCondition
(t *testing.T)
src/rules_engine/cep_test.go:1438
FunctionTestCEP_BuildError_UnreferencedEvent
(t *testing.T)
src/rules_engine/cep_test.go:1450
FunctionTestCEP_Execute_AbsenceTimeout_EndToEnd
############################################################################ PART 5: Absence Timeout End-to-End Integration ########################
src/rules_engine/cep_test.go:1996
FunctionTestCEP_Execute_AbsenceTimeout_ThreeStage
(t *testing.T)
src/rules_engine/cep_test.go:2140
FunctionTestCEP_Execute_AbsenceTimeout_ViolatedNoTrigger
(t *testing.T)
src/rules_engine/cep_test.go:2092
FunctionTestCEP_Execute_BasicSequence
============================================================================ Sequence Execution Tests ================================================
src/rules_engine/cep_test.go:1478
FunctionTestCEP_Execute_ChecklistBasedEvent
############################################################################ PART 6: Checklist Execution in Sequence Events ########################
src/rules_engine/cep_test.go:2218
FunctionTestCEP_Execute_ChecklistConditionNotMet
(t *testing.T)
src/rules_engine/cep_test.go:2263
FunctionTestCEP_Execute_CrossEventFieldRef_InAppend
TestCEP_Execute_CrossEventFieldRef_InAppend verifies that post-sequence <append> operations can reference fields from earlier events using the _$#even
src/rules_engine/cep_test.go:2468
FunctionTestCEP_Execute_CrossEventFieldRef_ThreeStage
TestCEP_Execute_CrossEventFieldRef_ThreeStage verifies _$# references work across a 3-stage sequence.
src/rules_engine/cep_test.go:2498
FunctionTestCEP_Execute_CrossEventFieldReference
(t *testing.T)
src/rules_engine/cep_test.go:1562
FunctionTestCEP_Execute_DifferentCorrelationKeys
(t *testing.T)
src/rules_engine/cep_test.go:1498
FunctionTestCEP_Execute_MixedGroupBy
TestCEP_Execute_MixedGroupBy verifies that when sequence-level group_by is set, it takes precedence over per-event group_by for all events. The per-ev
src/rules_engine/cep_test.go:2570
FunctionTestCEP_Execute_MixedGroupBy_Isolation
TestCEP_Execute_MixedGroupBy_Isolation verifies that different per-event group_by values produce isolated state.
src/rules_engine/cep_test.go:2596
FunctionTestCEP_Execute_MultiFieldGroupBy
TestCEP_Execute_MultiFieldGroupBy verifies that comma-separated group_by fields produce distinct correlation keys per unique field combination.
src/rules_engine/cep_test.go:2524
FunctionTestCEP_Execute_MultiFieldGroupBy_ThreeFields
TestCEP_Execute_MultiFieldGroupBy_ThreeFields verifies 3-field group_by.
src/rules_engine/cep_test.go:2546
FunctionTestCEP_Execute_MultiSourceSequence_DifferentEventGroupByFields
(t *testing.T)
src/rules_engine/cep_test.go:1303
FunctionTestCEP_Execute_OrBranch
(t *testing.T)
src/rules_engine/cep_test.go:1531
FunctionTestCEP_Execute_OrBranch_OverlappingEvents_BindsSingleBranch
============================================================================ OR Branch Binding Tests =================================================
src/rules_engine/cep_test.go:1641
FunctionTestCEP_Execute_OrBranch_OverlappingEvents_EventTimeUsesBoundBranch
(t *testing.T)
src/rules_engine/cep_test.go:1674
FunctionTestCEP_Execute_OrBranch_OverlappingEvents_OnlyBoundBranchAppliesContextAppend
(t *testing.T)
src/rules_engine/cep_test.go:1662
FunctionTestCEP_Execute_PebbleValueRef_Integration
TestCEP_Execute_PebbleValueRef_Integration verifies the full round-trip of event snapshots through PebbleCEPValueStore: PutSnapshot on stage match → G
src/rules_engine/cep_test.go:2679
FunctionTestCEP_Execute_SequenceContextReference_WithAtPrefix
(t *testing.T)
src/rules_engine/cep_test.go:1751
FunctionTestCEP_Execute_SequenceNotTriggeredOutOfOrder
(t *testing.T)
src/rules_engine/cep_test.go:1610
FunctionTestCEP_Execute_SequenceWithAppend
(t *testing.T)
src/rules_engine/cep_test.go:1622
FunctionTestCEP_Execute_ThreeStageSequence
(t *testing.T)
src/rules_engine/cep_test.go:1517
FunctionTestCEP_Execute_ThresholdInEvent
############################################################################ PART 8: Extended Coverage — Threshold, Cross-Event Ref, GroupBy, Within
src/rules_engine/cep_test.go:2398
FunctionTestCEP_Execute_ThresholdInEvent_DifferentGroups
TestCEP_Execute_ThresholdInEvent_DifferentGroups verifies that threshold counters are isolated by their group_by field.
src/rules_engine/cep_test.go:2434
FunctionTestCEP_Execute_WithEventTimestamp
(t *testing.T)
src/rules_engine/cep_test.go:1598
FunctionTestCEP_Execute_WithPreFilter
(t *testing.T)
src/rules_engine/cep_test.go:1543
FunctionTestCEP_Execute_WithinWindowExpiration
TestCEP_Execute_WithinWindowExpiration verifies that events arriving after the within window do not complete the sequence.
src/rules_engine/cep_test.go:2612
FunctionTestCEP_ParseAbsenceSequence
(t *testing.T)
src/rules_engine/cep_test.go:1239
FunctionTestCEP_ParseBasicSequence
############################################################################ PART 3: Integration — XML Parsing / Validation / Execution / Context ##
src/rules_engine/cep_test.go:1170
FunctionTestCEP_ParseError_DuplicateEventID
(t *testing.T)
src/rules_engine/cep_test.go:1431
FunctionTestCEP_ParseError_MissingCondition
(t *testing.T)
src/rules_engine/cep_test.go:1424
FunctionTestCEP_ParseError_MissingWithin
============================================================================ XML Validation Error Tests ==============================================
src/rules_engine/cep_test.go:1410
FunctionTestCEP_ParseError_TooFewEvents
(t *testing.T)
src/rules_engine/cep_test.go:1417
FunctionTestCEP_ParseMultiSourceSequence
(t *testing.T)
src/rules_engine/cep_test.go:1271
FunctionTestCEP_ParseWithChecklist
(t *testing.T)
src/rules_engine/cep_test.go:1368
FunctionTestCEP_Parse_EventAppendForSequenceContext
============================================================================ Sequence Context (_@) Tests =============================================
src/rules_engine/cep_test.go:1690
FunctionTestCEP_SequenceContext_BasicWriteRead
(t *testing.T)
src/rules_engine/cep_test.go:1706
FunctionTestCEP_SequenceContext_ClearedAfterSequenceCompletion
(t *testing.T)
src/rules_engine/cep_test.go:1786
FunctionTestCEP_SequenceContext_GroupByLookupWhenFirstPassHasNoMatches
(t *testing.T)
src/rules_engine/cep_test.go:1775
FunctionTestCEP_SequenceContext_IsolatedByGroupByKey
(t *testing.T)
src/rules_engine/cep_test.go:1729
FunctionTestCEP_SequenceContext_MissingKeyDoesNotMatch
(t *testing.T)
src/rules_engine/cep_test.go:1740
FunctionTestCEP_SequenceContext_PluginAppendWriteRead
(t *testing.T)
src/rules_engine/cep_test.go:1762
FunctionTestCEP_SequenceContext_UpdateAcrossStages
(t *testing.T)
src/rules_engine/cep_test.go:1717
FunctionTestCEP_Stress_10Minutes
TestCEP_Stress_10Minutes runs a mixed workload for 10 minutes to validate CEP stability/performance under pressure and edge cases. Run with: go test
src/rules_engine/cep_stress_long_test.go:20
FunctionTestCachedRegexMatchWithPrecompiled_Matches
(t *testing.T)
src/rules_engine/engine_extra_coverage_test.go:136
FunctionTestCachedRegexMatchWithPrecompiled_NoMatch
(t *testing.T)
src/rules_engine/engine_extra_coverage_test.go:148
FunctionTestCachedRegexMatch_FromRawSkipsCache
(t *testing.T)
src/rules_engine/engine_extra_coverage_test.go:76
FunctionTestCachedRegexMatch_InvalidPattern
(t *testing.T)
src/rules_engine/engine_extra_coverage_test.go:117
FunctionTestCachedRegexMatch_NilCache
(t *testing.T)
src/rules_engine/engine_extra_coverage_test.go:125
FunctionTestCachedRegexMatch_NoMatch
(t *testing.T)
src/rules_engine/engine_extra_coverage_test.go:106
FunctionTestCachedRegexMatch_StaticCaches
(t *testing.T)
src/rules_engine/engine_extra_coverage_test.go:92
FunctionTestCheckComplete_AbsenceNotObserved
============================================================================ Absence Detection Tests =================================================
src/rules_engine/cep_test.go:572
FunctionTestCheckComplete_AbsenceObserved
(t *testing.T)
src/rules_engine/cep_test.go:594
FunctionTestCheckComplete_AbsenceObservedBeforePrev
(t *testing.T)
src/rules_engine/cep_test.go:606
FunctionTestCheckComplete_AbsenceThenPresence
(t *testing.T)
src/rules_engine/cep_test.go:619
FunctionTestCheckComplete_AbsenceThenPresenceViolated
(t *testing.T)
src/rules_engine/cep_test.go:632
FunctionTestCheckComplete_EmptyState
(t *testing.T)
src/rules_engine/cep_test.go:524
FunctionTestCheckComplete_Incomplete
(t *testing.T)
src/rules_engine/cep_test.go:506
FunctionTestCheckComplete_MiddleAbsenceThenTrailingAbsence
(t *testing.T)
src/rules_engine/cep_test.go:699
FunctionTestCheckComplete_MiddleAbsence_StillCompletes
(t *testing.T)
src/rules_engine/cep_test.go:687
FunctionTestCheckComplete_MultipleMatchesNoValidOrder
(t *testing.T)
src/rules_engine/cep_test.go:556
FunctionTestCheckComplete_MultipleMatchesPerStage
(t *testing.T)
src/rules_engine/cep_test.go:543
FunctionTestCheckComplete_NilState
(t *testing.T)
src/rules_engine/cep_test.go:517
FunctionTestCheckComplete_OutOfOrderArrival
(t *testing.T)
src/rules_engine/cep_test.go:494
FunctionTestCheckComplete_PresenceThenTrailingAbsence
(t *testing.T)
src/rules_engine/cep_test.go:671
FunctionTestCheckComplete_SameTimestamp
(t *testing.T)
src/rules_engine/cep_test.go:532
FunctionTestCheckComplete_SimpleSequence
============================================================================ Sequence Completion Tests ("match first, check time later") =============
src/rules_engine/cep_test.go:472
← previousnext →1,401–1,500 of 2,165, ranked by callers