(t *testing.T, dbClient *database.Client, count int)
| 97 | } |
| 98 | |
| 99 | func assertTotalValidDecisionCount(t *testing.T, dbClient *database.Client, count int) { |
| 100 | ctx := t.Context() |
| 101 | d := dbClient.Ent.Decision.Query().Where( |
| 102 | decision.UntilGT(time.Now()), |
| 103 | ).AllX(ctx) |
| 104 | assert.Len(t, d, count) |
| 105 | } |
| 106 | |
| 107 | func jsonMarshalX(v any) []byte { |
| 108 | data, err := json.Marshal(v) |
no test coverage detected
searching dependent graphs…