(t *testing.T)
| 105 | } |
| 106 | |
| 107 | func TestInDependencyReverseDownCommandOrder(t *testing.T) { |
| 108 | var order []string |
| 109 | err := InReverseDependencyOrder(t.Context(), createTestProject(), func(ctx context.Context, service string) error { |
| 110 | order = append(order, service) |
| 111 | return nil |
| 112 | }) |
| 113 | assert.NilError(t, err, "Error during iteration") |
| 114 | assert.DeepEqual(t, []string{"test1", "test2", "test3"}, order) |
| 115 | } |
| 116 | |
| 117 | func TestBuildGraph(t *testing.T) { |
| 118 | testCases := []struct { |
nothing calls this directly
no test coverage detected