Refactor grpc/status.withDetails function for performance #2664
13.37% of diff hit (target 24.29%)
View this Pull Request on Codecov
13.37% of diff hit (target 24.29%)
Annotations
Check warning on line 141 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L141
Added line #L141 was not covered by tests
Check warning on line 171 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L171
Added line #L171 was not covered by tests
Check warning on line 260 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L259-L260
Added lines #L259 - L260 were not covered by tests
Check warning on line 453 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L453
Added line #L453 was not covered by tests
Check warning on line 458 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L458
Added line #L458 was not covered by tests
Check warning on line 461 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L461
Added line #L461 was not covered by tests
Check warning on line 478 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L471-L478
Added lines #L471 - L478 were not covered by tests
Check warning on line 481 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L480-L481
Added lines #L480 - L481 were not covered by tests
Check warning on line 492 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L492
Added line #L492 was not covered by tests
Check warning on line 500 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L494-L500
Added lines #L494 - L500 were not covered by tests
Check warning on line 505 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L502-L505
Added lines #L502 - L505 were not covered by tests
Check warning on line 511 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L507-L511
Added lines #L507 - L511 were not covered by tests
Check warning on line 551 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L544-L551
Added lines #L544 - L551 were not covered by tests
Check warning on line 556 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L553-L556
Added lines #L553 - L556 were not covered by tests
Check warning on line 573 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L566-L573
Added lines #L566 - L573 were not covered by tests
Check warning on line 578 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L575-L578
Added lines #L575 - L578 were not covered by tests
Check warning on line 615 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L608-L615
Added lines #L608 - L615 were not covered by tests
Check warning on line 620 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L617-L620
Added lines #L617 - L620 were not covered by tests
Check warning on line 625 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L622-L625
Added lines #L622 - L625 were not covered by tests
Check warning on line 662 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L655-L662
Added lines #L655 - L662 were not covered by tests
Check warning on line 667 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L664-L667
Added lines #L664 - L667 were not covered by tests
Check warning on line 704 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L697-L704
Added lines #L697 - L704 were not covered by tests
Check warning on line 709 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L706-L709
Added lines #L706 - L709 were not covered by tests
Check warning on line 726 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L719-L726
Added lines #L719 - L726 were not covered by tests
Check warning on line 731 in internal/net/grpc/status/status.go
codecov / codecov/patch
internal/net/grpc/status/status.go#L728-L731
Added lines #L728 - L731 were not covered by tests