@@ -2727,7 +2727,7 @@ func TestExptRetryAllExec_ExptStart(t *testing.T) {
27272727 },
27282728 prepareMock : func (f * exptRetryAllExecFields , args args ) {
27292729 f .idem .EXPECT ().Exist (gomock .Any (), gomock .Any ()).Return (false , nil ).Times (1 )
2730- f .evaluationSetItemService .EXPECT ().ListEvaluationSetItems (gomock .Any (), gomock .Any ()).Return (nil , nil , nil , errors .New ("list error" )).Times (1 )
2730+ f .evaluationSetItemService .EXPECT ().ListEvaluationSetItems (gomock .Any (), gomock .Any ()).Return (nil , nil , nil , nil , errors .New ("list error" )).Times (1 )
27312731 },
27322732 wantErr : true ,
27332733 assertErr : func (t * testing.T , err error ) {
@@ -2754,7 +2754,7 @@ func TestExptRetryAllExec_ExptStart(t *testing.T) {
27542754 mockItems := []* entity.EvaluationSetItem {
27552755 {ItemID : 100 , Turns : []* entity.Turn {{ID : 1000 }}},
27562756 }
2757- f .evaluationSetItemService .EXPECT ().ListEvaluationSetItems (gomock .Any (), gomock .Any ()).Return (mockItems , & total , nil , nil ).Times (1 )
2757+ f .evaluationSetItemService .EXPECT ().ListEvaluationSetItems (gomock .Any (), gomock .Any ()).Return (mockItems , & total , nil , nil , nil ).Times (1 )
27582758 f .idgenerator .EXPECT ().GenMultiIDs (gomock .Any (), gomock .Any ()).Return (nil , errors .New ("gen id error" )).Times (1 )
27592759 },
27602760 wantErr : true ,
@@ -2782,7 +2782,7 @@ func TestExptRetryAllExec_ExptStart(t *testing.T) {
27822782 mockItems := []* entity.EvaluationSetItem {
27832783 {ItemID : 100 , Turns : []* entity.Turn {{ID : 1000 }}},
27842784 }
2785- f .evaluationSetItemService .EXPECT ().ListEvaluationSetItems (gomock .Any (), gomock .Any ()).Return (mockItems , & total , nil , nil ).Times (1 )
2785+ f .evaluationSetItemService .EXPECT ().ListEvaluationSetItems (gomock .Any (), gomock .Any ()).Return (mockItems , & total , nil , nil , nil ).Times (1 )
27862786 f .idgenerator .EXPECT ().GenMultiIDs (gomock .Any (), gomock .Any ()).Return ([]int64 {1 , 2 }, nil ).Times (1 )
27872787 f .exptItemResultRepo .EXPECT ().UpdateItemsResult (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (errors .New ("update error" )).Times (1 )
27882788 },
@@ -2811,7 +2811,7 @@ func TestExptRetryAllExec_ExptStart(t *testing.T) {
28112811 mockItems := []* entity.EvaluationSetItem {
28122812 {ItemID : 100 , Turns : []* entity.Turn {{ID : 1000 }}},
28132813 }
2814- f .evaluationSetItemService .EXPECT ().ListEvaluationSetItems (gomock .Any (), gomock .Any ()).Return (mockItems , & total , nil , nil ).Times (1 )
2814+ f .evaluationSetItemService .EXPECT ().ListEvaluationSetItems (gomock .Any (), gomock .Any ()).Return (mockItems , & total , nil , nil , nil ).Times (1 )
28152815 f .idgenerator .EXPECT ().GenMultiIDs (gomock .Any (), gomock .Any ()).Return ([]int64 {1 , 2 }, nil ).Times (1 )
28162816 f .exptItemResultRepo .EXPECT ().UpdateItemsResult (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (nil ).Times (1 )
28172817 f .exptTurnResultRepo .EXPECT ().UpdateTurnResults (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (errors .New ("update turn error" )).Times (1 )
@@ -2841,7 +2841,7 @@ func TestExptRetryAllExec_ExptStart(t *testing.T) {
28412841 mockItems := []* entity.EvaluationSetItem {
28422842 {ItemID : 100 , Turns : []* entity.Turn {{ID : 1000 }}},
28432843 }
2844- f .evaluationSetItemService .EXPECT ().ListEvaluationSetItems (gomock .Any (), gomock .Any ()).Return (mockItems , & total , nil , nil ).Times (1 )
2844+ f .evaluationSetItemService .EXPECT ().ListEvaluationSetItems (gomock .Any (), gomock .Any ()).Return (mockItems , & total , nil , nil , nil ).Times (1 )
28452845 f .idgenerator .EXPECT ().GenMultiIDs (gomock .Any (), gomock .Any ()).Return ([]int64 {1 , 2 }, nil ).Times (1 )
28462846 f .exptItemResultRepo .EXPECT ().UpdateItemsResult (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (nil ).Times (1 )
28472847 f .exptTurnResultRepo .EXPECT ().UpdateTurnResults (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (nil ).Times (1 )
@@ -2872,7 +2872,7 @@ func TestExptRetryAllExec_ExptStart(t *testing.T) {
28722872 mockItems := []* entity.EvaluationSetItem {
28732873 {ItemID : 100 , Turns : []* entity.Turn {{ID : 1000 }}},
28742874 }
2875- f .evaluationSetItemService .EXPECT ().ListEvaluationSetItems (gomock .Any (), gomock .Any ()).Return (mockItems , & total , nil , nil ).Times (1 )
2875+ f .evaluationSetItemService .EXPECT ().ListEvaluationSetItems (gomock .Any (), gomock .Any ()).Return (mockItems , & total , nil , nil , nil ).Times (1 )
28762876 f .idgenerator .EXPECT ().GenMultiIDs (gomock .Any (), gomock .Any ()).Return ([]int64 {1 , 2 }, nil ).Times (1 )
28772877 f .exptItemResultRepo .EXPECT ().UpdateItemsResult (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (nil ).Times (1 )
28782878 f .exptTurnResultRepo .EXPECT ().UpdateTurnResults (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (nil ).Times (1 )
@@ -2904,7 +2904,7 @@ func TestExptRetryAllExec_ExptStart(t *testing.T) {
29042904 mockItems := []* entity.EvaluationSetItem {
29052905 {ItemID : 100 , Turns : []* entity.Turn {{ID : 1000 }}},
29062906 }
2907- f .evaluationSetItemService .EXPECT ().ListEvaluationSetItems (gomock .Any (), gomock .Any ()).Return (mockItems , & total , nil , nil ).Times (1 )
2907+ f .evaluationSetItemService .EXPECT ().ListEvaluationSetItems (gomock .Any (), gomock .Any ()).Return (mockItems , & total , nil , nil , nil ).Times (1 )
29082908 f .idgenerator .EXPECT ().GenMultiIDs (gomock .Any (), gomock .Any ()).Return ([]int64 {1 , 2 }, nil ).Times (1 )
29092909 f .exptItemResultRepo .EXPECT ().UpdateItemsResult (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (nil ).Times (1 )
29102910 f .exptTurnResultRepo .EXPECT ().UpdateTurnResults (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (nil ).Times (1 )
@@ -2943,7 +2943,7 @@ func TestExptRetryAllExec_ExptStart(t *testing.T) {
29432943 mockItems := []* entity.EvaluationSetItem {
29442944 {ItemID : 100 , Turns : []* entity.Turn {{ID : 1000 }}},
29452945 }
2946- f .evaluationSetItemService .EXPECT ().ListEvaluationSetItems (gomock .Any (), gomock .Any ()).Return (mockItems , & total , nil , nil ).Times (1 )
2946+ f .evaluationSetItemService .EXPECT ().ListEvaluationSetItems (gomock .Any (), gomock .Any ()).Return (mockItems , & total , nil , nil , nil ).Times (1 )
29472947 f .idgenerator .EXPECT ().GenMultiIDs (gomock .Any (), gomock .Any ()).Return ([]int64 {1 , 2 }, nil ).Times (1 )
29482948 f .exptItemResultRepo .EXPECT ().UpdateItemsResult (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (nil ).Times (1 )
29492949 f .exptTurnResultRepo .EXPECT ().UpdateTurnResults (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (nil ).Times (1 )
@@ -2983,7 +2983,7 @@ func TestExptRetryAllExec_ExptStart(t *testing.T) {
29832983 mockItems := []* entity.EvaluationSetItem {
29842984 {ItemID : 100 , Turns : []* entity.Turn {{ID : 1000 }}},
29852985 }
2986- f .evaluationSetItemService .EXPECT ().ListEvaluationSetItems (gomock .Any (), gomock .Any ()).Return (mockItems , & total , nil , nil ).Times (1 )
2986+ f .evaluationSetItemService .EXPECT ().ListEvaluationSetItems (gomock .Any (), gomock .Any ()).Return (mockItems , & total , nil , nil , nil ).Times (1 )
29872987 f .idgenerator .EXPECT ().GenMultiIDs (gomock .Any (), gomock .Any ()).Return ([]int64 {1 , 2 }, nil ).Times (1 )
29882988 f .exptItemResultRepo .EXPECT ().UpdateItemsResult (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (nil ).Times (1 )
29892989 f .exptTurnResultRepo .EXPECT ().UpdateTurnResults (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (nil ).Times (1 )
0 commit comments