Skip to content

test(ui): refactor test fixtures, increase accounts coverage

Codecov / codecov/patch failed Nov 19, 2024 in 1s

47.35% of diff hit (target 51.61%)

View this Pull Request on Codecov

47.35% of diff hit (target 51.61%)

Annotations

Check warning on line 166 in internal/accounts.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/accounts.go#L162-L166

Added lines #L162 - L166 were not covered by tests

Check warning on line 142 in internal/participation.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/participation.go#L142

Added line #L142 was not covered by tests

Check warning on line 34 in internal/status.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/status.go#L34

Added line #L34 was not covered by tests

Check warning on line 30 in ui/app/keys.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/app/keys.go#L18-L30

Added lines #L18 - L30 were not covered by tests

Check warning on line 51 in ui/app/keys.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/app/keys.go#L34-L51

Added lines #L34 - L51 were not covered by tests

Check warning on line 59 in ui/app/keys.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/app/keys.go#L53-L59

Added lines #L53 - L59 were not covered by tests

Check warning on line 23 in ui/app/modal.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/app/modal.go#L20-L23

Added lines #L20 - L23 were not covered by tests

Check warning on line 33 in ui/modal/controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/modal/controller.go#L26-L33

Added lines #L26 - L33 were not covered by tests

Check warning on line 39 in ui/modal/controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/modal/controller.go#L35-L39

Added lines #L35 - L39 were not covered by tests

Check warning on line 54 in ui/modal/controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/modal/controller.go#L41-L54

Added lines #L41 - L54 were not covered by tests

Check warning on line 63 in ui/modal/controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/modal/controller.go#L58-L63

Added lines #L58 - L63 were not covered by tests

Check warning on line 67 in ui/modal/controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/modal/controller.go#L66-L67

Added lines #L66 - L67 were not covered by tests

Check warning on line 77 in ui/modal/controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/modal/controller.go#L70-L77

Added lines #L70 - L77 were not covered by tests

Check warning on line 107 in ui/modal/controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/modal/controller.go#L106-L107

Added lines #L106 - L107 were not covered by tests

Check warning on line 111 in ui/modal/controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/modal/controller.go#L110-L111

Added lines #L110 - L111 were not covered by tests

Check warning on line 116 in ui/modal/controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/modal/controller.go#L113-L116

Added lines #L113 - L116 were not covered by tests

Check warning on line 123 in ui/modal/controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/modal/controller.go#L122-L123

Added lines #L122 - L123 were not covered by tests

Check warning on line 45 in ui/modal/model.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/modal/model.go#L43-L45

Added lines #L43 - L45 were not covered by tests

Check warning on line 50 in ui/modal/model.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/modal/model.go#L47-L50

Added lines #L47 - L50 were not covered by tests

Check warning on line 56 in ui/modal/model.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/modal/model.go#L52-L56

Added lines #L52 - L56 were not covered by tests

Check warning on line 81 in ui/modal/model.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/modal/model.go#L59-L81

Added lines #L59 - L81 were not covered by tests

Check warning on line 24 in ui/modal/view.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/modal/view.go#L13-L24

Added lines #L13 - L24 were not covered by tests

Check warning on line 38 in ui/modal/view.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/modal/view.go#L26-L38

Added lines #L26 - L38 were not covered by tests

Check warning on line 38 in ui/modals/confirm/confirm.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/modals/confirm/confirm.go#L37-L38

Added lines #L37 - L38 were not covered by tests

Check warning on line 53 in ui/modals/confirm/confirm.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

ui/modals/confirm/confirm.go#L42-L53

Added lines #L42 - L53 were not covered by tests