refactor: extract inspect rendering logic to be display handlers #1150
88.85% of diff hit (target 80.00%)
View this Pull Request on Codecov
88.85% of diff hit (target 80.00%)
Annotations
Check warning on line 116 in cmd/notation/internal/display/metadata/json/inspect.go
codecov / codecov/patch
cmd/notation/internal/display/metadata/json/inspect.go#L115-L116
Added lines #L115 - L116 were not covered by tests
Check warning on line 121 in cmd/notation/internal/display/metadata/json/inspect.go
codecov / codecov/patch
cmd/notation/internal/display/metadata/json/inspect.go#L120-L121
Added lines #L120 - L121 were not covered by tests
Check warning on line 191 in cmd/notation/internal/display/metadata/json/inspect.go
codecov / codecov/patch
cmd/notation/internal/display/metadata/json/inspect.go#L188-L191
Added lines #L188 - L191 were not covered by tests
Check warning on line 84 in cmd/notation/internal/display/metadata/tree/inspect.go
codecov / codecov/patch
cmd/notation/internal/display/metadata/tree/inspect.go#L83-L84
Added lines #L83 - L84 were not covered by tests
Check warning on line 88 in cmd/notation/internal/display/metadata/tree/inspect.go
codecov / codecov/patch
cmd/notation/internal/display/metadata/tree/inspect.go#L87-L88
Added lines #L87 - L88 were not covered by tests
Check warning on line 92 in cmd/notation/internal/display/metadata/tree/inspect.go
codecov / codecov/patch
cmd/notation/internal/display/metadata/tree/inspect.go#L91-L92
Added lines #L91 - L92 were not covered by tests
Check warning on line 159 in cmd/notation/internal/display/metadata/tree/inspect.go
codecov / codecov/patch
cmd/notation/internal/display/metadata/tree/inspect.go#L157-L159
Added lines #L157 - L159 were not covered by tests
Check warning on line 59 in cmd/notation/internal/display/metadata/tree/tree.go
codecov / codecov/patch
cmd/notation/internal/display/metadata/tree/tree.go#L58-L59
Added lines #L58 - L59 were not covered by tests
Check warning on line 72 in cmd/notation/internal/display/metadata/tree/tree.go
codecov / codecov/patch
cmd/notation/internal/display/metadata/tree/tree.go#L71-L72
Added lines #L71 - L72 were not covered by tests
Check warning on line 77 in internal/envelope/envelope.go
codecov / codecov/patch
internal/envelope/envelope.go#L77
Added line #L77 was not covered by tests