Skip to content

refactor: use referrer interface, gateway diff and gateway wrapper

Codecov / codecov/patch failed Sep 19, 2023 in 1s

56.31% of diff hit (target 64.14%)

View this Pull Request on Codecov

56.31% of diff hit (target 64.14%)

Annotations

Check warning on line 245 in api/v1beta2/ratelimitpolicy_types.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

api/v1beta2/ratelimitpolicy_types.go#L244-L245

Added lines #L244 - L245 were not covered by tests

Check warning on line 249 in api/v1beta2/ratelimitpolicy_types.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

api/v1beta2/ratelimitpolicy_types.go#L248-L249

Added lines #L248 - L249 were not covered by tests

Check warning on line 23 in pkg/common/referrer.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/common/referrer.go#L22-L23

Added lines #L22 - L23 were not covered by tests

Check warning on line 30 in pkg/common/referrer.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/common/referrer.go#L29-L30

Added lines #L29 - L30 were not covered by tests

Check warning on line 19 in pkg/common/slice_utils.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/common/slice_utils.go#L18-L19

Added lines #L18 - L19 were not covered by tests

Check warning on line 77 in pkg/common/slice_utils.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/common/slice_utils.go#L72-L77

Added lines #L72 - L77 were not covered by tests

Check warning on line 79 in pkg/common/slice_utils.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/common/slice_utils.go#L79

Added line #L79 was not covered by tests

Check warning on line 6 in pkg/common/test_utils.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/common/test_utils.go#L5-L6

Added lines #L5 - L6 were not covered by tests

Check warning on line 22 in pkg/mappers/event_mapper.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/mappers/event_mapper.go#L19-L22

Added lines #L19 - L22 were not covered by tests

Check warning on line 40 in pkg/mappers/event_mapper.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/mappers/event_mapper.go#L37-L40

Added lines #L37 - L40 were not covered by tests

Check warning on line 48 in pkg/mappers/event_mapper.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/mappers/event_mapper.go#L47-L48

Added lines #L47 - L48 were not covered by tests

Check warning on line 55 in pkg/mappers/event_mapper.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/mappers/event_mapper.go#L54-L55

Added lines #L54 - L55 were not covered by tests

Check warning on line 31 in pkg/mappers/gateway.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/mappers/gateway.go#L24-L31

Added lines #L24 - L31 were not covered by tests

Check warning on line 38 in pkg/mappers/gateway.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/mappers/gateway.go#L33-L38

Added lines #L33 - L38 were not covered by tests

Check warning on line 42 in pkg/mappers/gateway.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/mappers/gateway.go#L40-L42

Added lines #L40 - L42 were not covered by tests

Check warning on line 44 in pkg/mappers/gateway.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/mappers/gateway.go#L44

Added line #L44 was not covered by tests

Check warning on line 31 in pkg/mappers/httproute.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/mappers/httproute.go#L24-L31

Added lines #L24 - L31 were not covered by tests

Check warning on line 38 in pkg/mappers/httproute.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/mappers/httproute.go#L33-L38

Added lines #L33 - L38 were not covered by tests

Check warning on line 42 in pkg/mappers/httproute.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/mappers/httproute.go#L40-L42

Added lines #L40 - L42 were not covered by tests

Check warning on line 44 in pkg/mappers/httproute.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/mappers/httproute.go#L44

Added line #L44 was not covered by tests

Check warning on line 21 in pkg/reconcilers/fetcher.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/reconcilers/fetcher.go#L20-L21

Added lines #L20 - L21 were not covered by tests

Check warning on line 27 in pkg/reconcilers/fetcher.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/reconcilers/fetcher.go#L26-L27

Added lines #L26 - L27 were not covered by tests

Check warning on line 31 in pkg/reconcilers/fetcher.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/reconcilers/fetcher.go#L30-L31

Added lines #L30 - L31 were not covered by tests

Check warning on line 43 in pkg/reconcilers/fetcher.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/reconcilers/fetcher.go#L42-L43

Added lines #L42 - L43 were not covered by tests

Check warning on line 47 in pkg/reconcilers/fetcher.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/reconcilers/fetcher.go#L46-L47

Added lines #L46 - L47 were not covered by tests