(t *testing.T)
| 95 | } |
| 96 | |
| 97 | func TestInDependencyUpCommandOrder(t *testing.T) { |
| 98 | var order []string |
| 99 | err := InDependencyOrder(t.Context(), createTestProject(), func(ctx context.Context, service string) error { |
| 100 | order = append(order, service) |
| 101 | return nil |
| 102 | }) |
| 103 | assert.NilError(t, err, "Error during iteration") |
| 104 | assert.DeepEqual(t, []string{"test3", "test2", "test1"}, order) |
| 105 | } |
| 106 | |
| 107 | func TestInDependencyReverseDownCommandOrder(t *testing.T) { |
| 108 | var order []string |
nothing calls this directly
no test coverage detected