Skip to content

fix GetPodEffectiveDecorations and add ut

Codecov / codecov/patch failed Dec 5, 2023 in 0s

54.16% of diff hit (target 59.58%)

View this Pull Request on Codecov

54.16% of diff hit (target 59.58%)

Annotations

Check warning on line 96 in pkg/controllers/collaset/collaset_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/collaset/collaset_controller.go#L95-L96

Added lines #L95 - L96 were not covered by tests

Check warning on line 159 in pkg/controllers/collaset/collaset_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/collaset/collaset_controller.go#L159

Added line #L159 was not covered by tests

Check warning on line 178 in pkg/controllers/collaset/collaset_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/collaset/collaset_controller.go#L177-L178

Added lines #L177 - L178 were not covered by tests

Check warning on line 183 in pkg/controllers/collaset/collaset_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/collaset/collaset_controller.go#L180-L183

Added lines #L180 - L183 were not covered by tests

Check warning on line 216 in pkg/controllers/collaset/collaset_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/collaset/collaset_controller.go#L216

Added line #L216 was not covered by tests

Check warning on line 323 in pkg/controllers/collaset/collaset_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/collaset/collaset_controller.go#L322-L323

Added lines #L322 - L323 were not covered by tests

Check warning on line 37 in pkg/controllers/collaset/event_handler.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/collaset/event_handler.go#L37

Added line #L37 was not covered by tests

Check warning on line 53 in pkg/controllers/collaset/event_handler.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/collaset/event_handler.go#L41-L53

Added lines #L41 - L53 were not covered by tests

Check warning on line 58 in pkg/controllers/collaset/event_handler.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/collaset/event_handler.go#L58

Added line #L58 was not covered by tests

Check warning on line 62 in pkg/controllers/collaset/event_handler.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/collaset/event_handler.go#L62

Added line #L62 was not covered by tests

Check warning on line 43 in pkg/controllers/poddecoration/event_handler.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/poddecoration/event_handler.go#L41-L43

Added lines #L41 - L43 were not covered by tests

Check warning on line 60 in pkg/controllers/poddecoration/event_handler.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/poddecoration/event_handler.go#L60

Added line #L60 was not covered by tests

Check warning on line 67 in pkg/controllers/poddecoration/poddecoration_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/poddecoration/poddecoration_controller.go#L66-L67

Added lines #L66 - L67 were not covered by tests

Check warning on line 73 in pkg/controllers/poddecoration/poddecoration_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/poddecoration/poddecoration_controller.go#L72-L73

Added lines #L72 - L73 were not covered by tests

Check warning on line 78 in pkg/controllers/poddecoration/poddecoration_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/poddecoration/poddecoration_controller.go#L77-L78

Added lines #L77 - L78 were not covered by tests

Check warning on line 84 in pkg/controllers/poddecoration/poddecoration_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/poddecoration/poddecoration_controller.go#L83-L84

Added lines #L83 - L84 were not covered by tests

Check warning on line 140 in pkg/controllers/poddecoration/poddecoration_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/poddecoration/poddecoration_controller.go#L139-L140

Added lines #L139 - L140 were not covered by tests

Check warning on line 145 in pkg/controllers/poddecoration/poddecoration_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/poddecoration/poddecoration_controller.go#L144-L145

Added lines #L144 - L145 were not covered by tests

Check warning on line 150 in pkg/controllers/poddecoration/poddecoration_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/poddecoration/poddecoration_controller.go#L149-L150

Added lines #L149 - L150 were not covered by tests

Check warning on line 160 in pkg/controllers/poddecoration/poddecoration_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/poddecoration/poddecoration_controller.go#L159-L160

Added lines #L159 - L160 were not covered by tests

Check warning on line 175 in pkg/controllers/poddecoration/poddecoration_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/poddecoration/poddecoration_controller.go#L174-L175

Added lines #L174 - L175 were not covered by tests

Check warning on line 204 in pkg/controllers/poddecoration/poddecoration_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/poddecoration/poddecoration_controller.go#L203-L204

Added lines #L203 - L204 were not covered by tests

Check warning on line 207 in pkg/controllers/poddecoration/poddecoration_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/poddecoration/poddecoration_controller.go#L206-L207

Added lines #L206 - L207 were not covered by tests

Check warning on line 238 in pkg/controllers/poddecoration/poddecoration_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/poddecoration/poddecoration_controller.go#L237-L238

Added lines #L237 - L238 were not covered by tests

Check warning on line 248 in pkg/controllers/poddecoration/poddecoration_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/controllers/poddecoration/poddecoration_controller.go#L247-L248

Added lines #L247 - L248 were not covered by tests