modify ParseError to FromError for agent handler #2667
1.00% of diff hit (target 23.99%)
View this Pull Request on Codecov
1.00% of diff hit (target 23.99%)
Annotations
Check warning on line 168 in pkg/agent/core/ngt/handler/grpc/insert.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/insert.go#L168
Added line #L168 was not covered by tests
Check warning on line 185 in pkg/agent/core/ngt/handler/grpc/insert.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/insert.go#L184-L185
Added lines #L184 - L185 were not covered by tests
Check warning on line 187 in pkg/agent/core/ngt/handler/grpc/insert.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/insert.go#L187
Added line #L187 was not covered by tests
Check warning on line 347 in pkg/agent/core/ngt/handler/grpc/linear_search.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/linear_search.go#L346-L347
Added lines #L346 - L347 were not covered by tests
Check warning on line 349 in pkg/agent/core/ngt/handler/grpc/linear_search.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/linear_search.go#L349
Added line #L349 was not covered by tests
Check warning on line 366 in pkg/agent/core/ngt/handler/grpc/linear_search.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/linear_search.go#L365-L366
Added lines #L365 - L366 were not covered by tests
Check warning on line 368 in pkg/agent/core/ngt/handler/grpc/linear_search.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/linear_search.go#L368
Added line #L368 was not covered by tests
Check warning on line 396 in pkg/agent/core/ngt/handler/grpc/linear_search.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/linear_search.go#L395-L396
Added lines #L395 - L396 were not covered by tests
Check warning on line 398 in pkg/agent/core/ngt/handler/grpc/linear_search.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/linear_search.go#L398
Added line #L398 was not covered by tests
Check warning on line 415 in pkg/agent/core/ngt/handler/grpc/linear_search.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/linear_search.go#L414-L415
Added lines #L414 - L415 were not covered by tests
Check warning on line 417 in pkg/agent/core/ngt/handler/grpc/linear_search.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/linear_search.go#L417
Added line #L417 was not covered by tests
Check warning on line 456 in pkg/agent/core/ngt/handler/grpc/linear_search.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/linear_search.go#L455-L456
Added lines #L455 - L456 were not covered by tests
Check warning on line 458 in pkg/agent/core/ngt/handler/grpc/linear_search.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/linear_search.go#L458
Added line #L458 was not covered by tests
Check warning on line 480 in pkg/agent/core/ngt/handler/grpc/linear_search.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/linear_search.go#L476-L480
Added lines #L476 - L480 were not covered by tests
Check warning on line 482 in pkg/agent/core/ngt/handler/grpc/linear_search.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/linear_search.go#L482
Added line #L482 was not covered by tests
Check warning on line 518 in pkg/agent/core/ngt/handler/grpc/linear_search.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/linear_search.go#L517-L518
Added lines #L517 - L518 were not covered by tests
Check warning on line 520 in pkg/agent/core/ngt/handler/grpc/linear_search.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/linear_search.go#L520
Added line #L520 was not covered by tests
Check warning on line 542 in pkg/agent/core/ngt/handler/grpc/linear_search.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/linear_search.go#L538-L542
Added lines #L538 - L542 were not covered by tests
Check warning on line 544 in pkg/agent/core/ngt/handler/grpc/linear_search.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/linear_search.go#L544
Added line #L544 was not covered by tests
Check warning on line 155 in pkg/agent/core/ngt/handler/grpc/object.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/object.go#L154-L155
Added lines #L154 - L155 were not covered by tests
Check warning on line 157 in pkg/agent/core/ngt/handler/grpc/object.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/object.go#L157
Added line #L157 was not covered by tests
Check warning on line 174 in pkg/agent/core/ngt/handler/grpc/object.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/object.go#L173-L174
Added lines #L173 - L174 were not covered by tests
Check warning on line 176 in pkg/agent/core/ngt/handler/grpc/object.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/object.go#L176
Added line #L176 was not covered by tests
Check warning on line 160 in pkg/agent/core/ngt/handler/grpc/remove.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/remove.go#L159-L160
Added lines #L159 - L160 were not covered by tests
Check warning on line 162 in pkg/agent/core/ngt/handler/grpc/remove.go
codecov / codecov/patch
pkg/agent/core/ngt/handler/grpc/remove.go#L162
Added line #L162 was not covered by tests