@@ -1091,51 +1091,50 @@ func TestParseFiles_WithPanicEventFile(t *testing.T) {
10911091
10921092 // Map test names to expected values for easier assertions
10931093 expected := map [string ]struct {
1094- pkg string
1095- pkgPanic bool
1096- panic bool
1097- passRatio float64
1098- runs int
1099- failures int
1100- successes int
1101- skipped bool
1102- skips int
1094+ pkg string
1095+ pkgPanic bool
1096+ panic bool
1097+ passRatio float64
1098+ runs int
1099+ failures int
1100+ successes int
1101+ skipped bool
1102+ skips int
11031103 }{
1104- "Test_EventHandlerStateSync" : {
1105- pkg : "github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/capabilities/workflows/syncer" , pkgPanic : true , panic : false , passRatio : 1 , runs : 1 , failures : 0 , successes : 1 , skipped : false , skips : 0 ,
1106- },
1107- "Test_InitialStateSync" : {
1108- pkg : "github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/capabilities/workflows/syncer" , pkgPanic : true , panic : false , passRatio : 1 , runs : 1 , failures : 0 , successes : 1 , skipped : false , skips : 0 ,
1109- },
1110- "Test_RegistrySyncer_SkipsEventsNotBelongingToDON" : {
1111- pkg : "github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/capabilities/workflows/syncer" , pkgPanic : true , panic : false , passRatio : 1 , runs : 1 , failures : 0 , successes : 1 , skipped : false , skips : 0 ,
1112- },
1113- "Test_RegistrySyncer_WorkflowRegistered_InitiallyActivated" : {
1114- pkg : "github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/capabilities/workflows/syncer" , pkgPanic : true , panic : true , passRatio : 0 , runs : 1 , failures : 1 , successes : 0 , skipped : false , skips : 0 ,
1115- },
1116- "Test_RegistrySyncer_WorkflowRegistered_InitiallyPaused" : {
1117- pkg : "github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/capabilities/workflows/syncer" , pkgPanic : true , panic : false , passRatio : 1 , runs : 1 , failures : 0 , successes : 1 , skipped : false , skips : 0 ,
1118- },
1119- "Test_SecretsWorker" : {
1120- pkg : "github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/capabilities/workflows/syncer" , pkgPanic : false , panic : false , passRatio : 1 , runs : 0 , failures : 0 , successes : 0 , skipped : true , skips : 1 ,
1121- },
1104+ "Test_EventHandlerStateSync" : {
1105+ pkg : "github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/capabilities/workflows/syncer" , pkgPanic : true , panic : false , passRatio : 1 , runs : 1 , failures : 0 , successes : 1 , skipped : false , skips : 0 ,
1106+ },
1107+ "Test_InitialStateSync" : {
1108+ pkg : "github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/capabilities/workflows/syncer" , pkgPanic : true , panic : false , passRatio : 1 , runs : 1 , failures : 0 , successes : 1 , skipped : false , skips : 0 ,
1109+ },
1110+ "Test_RegistrySyncer_SkipsEventsNotBelongingToDON" : {
1111+ pkg : "github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/capabilities/workflows/syncer" , pkgPanic : true , panic : false , passRatio : 1 , runs : 1 , failures : 0 , successes : 1 , skipped : false , skips : 0 ,
1112+ },
1113+ "Test_RegistrySyncer_WorkflowRegistered_InitiallyActivated" : {
1114+ pkg : "github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/capabilities/workflows/syncer" , pkgPanic : true , panic : true , passRatio : 0 , runs : 1 , failures : 1 , successes : 0 , skipped : false , skips : 0 ,
1115+ },
1116+ "Test_RegistrySyncer_WorkflowRegistered_InitiallyPaused" : {
1117+ pkg : "github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/capabilities/workflows/syncer" , pkgPanic : true , panic : false , passRatio : 1 , runs : 1 , failures : 0 , successes : 1 , skipped : false , skips : 0 ,
1118+ },
1119+ "Test_SecretsWorker" : {
1120+ pkg : "github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/capabilities/workflows/syncer" , pkgPanic : false , panic : false , passRatio : 1 , runs : 0 , failures : 0 , successes : 0 , skipped : true , skips : 1 ,
1121+ },
11221122 }
11231123
11241124 for _ , r := range results {
1125- exp , ok := expected [r .TestName ]
1126- require .True (t , ok , "Unexpected test name: %s" , r .TestName )
1127- assert .Equal (t , exp .pkg , r .TestPackage , "Package mismatch for %s" , r .TestName )
1128- assert .Equal (t , exp .pkgPanic , r .PackagePanic , "PackagePanic mismatch for %s" , r .TestName )
1129- assert .Equal (t , exp .panic , r .Panic , "Panic mismatch for %s" , r .TestName )
1130- assert .InDelta (t , exp .passRatio , r .PassRatio , 0.001 , "PassRatio mismatch for %s" , r .TestName )
1131- assert .Equal (t , exp .runs , r .Runs , "Runs mismatch for %s" , r .TestName )
1132- assert .Equal (t , exp .failures , r .Failures , "Failures mismatch for %s" , r .TestName )
1133- assert .Equal (t , exp .successes , r .Successes , "Successes mismatch for %s" , r .TestName )
1134- assert .Equal (t , exp .skipped , r .Skipped , "Skipped mismatch for %s" , r .TestName )
1135- assert .Equal (t , exp .skips , r .Skips , "Skips count mismatch for %s" , r .TestName )
1125+ exp , ok := expected [r .TestName ]
1126+ require .True (t , ok , "Unexpected test name: %s" , r .TestName )
1127+ assert .Equal (t , exp .pkg , r .TestPackage , "Package mismatch for %s" , r .TestName )
1128+ assert .Equal (t , exp .pkgPanic , r .PackagePanic , "PackagePanic mismatch for %s" , r .TestName )
1129+ assert .Equal (t , exp .panic , r .Panic , "Panic mismatch for %s" , r .TestName )
1130+ assert .InDelta (t , exp .passRatio , r .PassRatio , 0.001 , "PassRatio mismatch for %s" , r .TestName )
1131+ assert .Equal (t , exp .runs , r .Runs , "Runs mismatch for %s" , r .TestName )
1132+ assert .Equal (t , exp .failures , r .Failures , "Failures mismatch for %s" , r .TestName )
1133+ assert .Equal (t , exp .successes , r .Successes , "Successes mismatch for %s" , r .TestName )
1134+ assert .Equal (t , exp .skipped , r .Skipped , "Skipped mismatch for %s" , r .TestName )
1135+ assert .Equal (t , exp .skips , r .Skips , "Skips count mismatch for %s" , r .TestName )
11361136 }
11371137
1138-
11391138}
11401139
11411140func TestParseFiles_WithPanicEventFileSpecific (t * testing.T ) {
0 commit comments