infobloxopen / atlas-app-toolkit

This repository provides common Go utilities and helpers that are reusable from project-to-project. The goal is to prevent code duplication by encouraging teams to use and contribute to toolkit libraries. The toolkit is not a framework. Rather, it is a set of (mostly gRPC-related) plugins and helpers.
Apache License 2.0
99 stars 116 forks source link

Support query filter on DB columns of string array type #394

Closed ylongca closed 1 year ago

ylongca commented 1 year ago

Test with go 1.16

make test
test -z `go fmt ./...`
go mod tidy
go mod vendor
go test -cover ./...
ok      github.com/infobloxopen/atlas-app-toolkit/auth  (cached)    coverage: 85.7% of statements
ok      github.com/infobloxopen/atlas-app-toolkit/bloxid    (cached)    coverage: 79.9% of statements
ok      github.com/infobloxopen/atlas-app-toolkit/cmode (cached)    coverage: 83.1% of statements
?       github.com/infobloxopen/atlas-app-toolkit/cmode/logger  [no test files]
ok      github.com/infobloxopen/atlas-app-toolkit/errors    (cached)    coverage: 83.6% of statements
ok      github.com/infobloxopen/atlas-app-toolkit/errors/mappers/pqerrors   (cached)    coverage: 100.0% of statements
ok      github.com/infobloxopen/atlas-app-toolkit/errors/mappers/validationerrors   (cached)    coverage: 93.0% of statements
ok      github.com/infobloxopen/atlas-app-toolkit/gateway   (cached)    coverage: 65.0% of statements
ok      github.com/infobloxopen/atlas-app-toolkit/gorm  (cached)    coverage: 77.4% of statements
ok      github.com/infobloxopen/atlas-app-toolkit/gorm/resource (cached)    coverage: 95.8% of statements
ok      github.com/infobloxopen/atlas-app-toolkit/health    (cached)    coverage: 87.5% of statements
ok      github.com/infobloxopen/atlas-app-toolkit/integration   (cached)    coverage: 70.0% of statements
ok      github.com/infobloxopen/atlas-app-toolkit/logging   (cached)    coverage: 61.0% of statements
?       github.com/infobloxopen/atlas-app-toolkit/logging/mocks [no test files]
?       github.com/infobloxopen/atlas-app-toolkit/mocks/transport   [no test files]
ok      github.com/infobloxopen/atlas-app-toolkit/query 0.959s  coverage: 57.4% of statements
ok      github.com/infobloxopen/atlas-app-toolkit/requestid (cached)    coverage: 96.6% of statements
ok      github.com/infobloxopen/atlas-app-toolkit/requestinfo   (cached)    coverage: 83.6% of statements
ok      github.com/infobloxopen/atlas-app-toolkit/rpc/errdetails    (cached)    coverage: 67.4% of statements
ok      github.com/infobloxopen/atlas-app-toolkit/rpc/errfields (cached)    coverage: 19.1% of statements
ok      github.com/infobloxopen/atlas-app-toolkit/rpc/resource  (cached)    coverage: 79.6% of statements
ok      github.com/infobloxopen/atlas-app-toolkit/server    (cached)    coverage: 76.7% of statements
?       github.com/infobloxopen/atlas-app-toolkit/servertest    [no test files]
ok      github.com/infobloxopen/atlas-app-toolkit/tracing   (cached)    coverage: 72.3% of statements
ok      github.com/infobloxopen/atlas-app-toolkit/util  (cached)    coverage: 20.0% of statements