Skip to content

chore: add additional test coverage

Codecov / codecov/patch succeeded Dec 2, 2024 in 1s

52.47% of diff hit (target 51.07%)

View this Pull Request on Codecov

52.47% of diff hit (target 51.07%)

Annotations

Check warning on line 159 in api/v1alpha1/stage_types.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

api/v1alpha1/stage_types.go#L158-L159

Added lines #L158 - L159 were not covered by tests

Check warning on line 143 in cmd/controlplane/webhooks.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/controlplane/webhooks.go#L139-L143

Added lines #L139 - L143 were not covered by tests

Check warning on line 151 in internal/api/promote_downstream_v1alpha1.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/api/promote_downstream_v1alpha1.go#L150-L151

Added lines #L150 - L151 were not covered by tests

Check warning on line 170 in internal/api/promote_downstream_v1alpha1.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/api/promote_downstream_v1alpha1.go#L167-L170

Added lines #L167 - L170 were not covered by tests

Check warning on line 125 in internal/api/promote_to_stage_v1alpha1.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/api/promote_to_stage_v1alpha1.go#L121-L125

Added lines #L121 - L125 were not covered by tests

Check warning on line 1560 in internal/controller/stages/regular_stages.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/controller/stages/regular_stages.go#L1556-L1560

Added lines #L1556 - L1560 were not covered by tests

Check warning on line 1563 in internal/controller/stages/regular_stages.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/controller/stages/regular_stages.go#L1562-L1563

Added lines #L1562 - L1563 were not covered by tests

Check warning on line 1573 in internal/controller/stages/regular_stages.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/controller/stages/regular_stages.go#L1570-L1573

Added lines #L1570 - L1573 were not covered by tests

Check warning on line 1575 in internal/controller/stages/regular_stages.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/controller/stages/regular_stages.go#L1575

Added line #L1575 was not covered by tests

Check warning on line 34 in internal/webhook/promotiontemplate/webhook.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/webhook/promotiontemplate/webhook.go#L27-L34

Added lines #L27 - L34 were not covered by tests

Check warning on line 46 in internal/webhook/promotiontemplate/webhook.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/webhook/promotiontemplate/webhook.go#L45-L46

Added lines #L45 - L46 were not covered by tests

Check warning on line 50 in internal/webhook/promotiontemplate/webhook.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/webhook/promotiontemplate/webhook.go#L49-L50

Added lines #L49 - L50 were not covered by tests