distribution/registry
Sebastiaan van Stijn 4052d269f5
reference, registry: fix loop variable captured by func literal (govet)
reference/normalize_test.go:274:40: loopclosure: loop variable r captured by func literal (govet)
                                   named, err := ParseNormalizedNamed(r)
                                                                      ^
    reference/normalize_test.go:276:29: loopclosure: loop variable r captured by func literal (govet)
                        t.Fatalf("ref=%s: %v", r, err)
                                               ^
    registry/api/errcode/errors_test.go:45:7: loopclosure: loop variable ec captured by func literal (govet)
                if ec != desc.Code {
                   ^
    registry/api/errcode/errors_test.go:46:66: loopclosure: loop variable ec captured by func literal (govet)
                    t.Fatalf("error code in descriptor isn't correct, %q != %q", ec, desc.Code)
                                                                                 ^
    registry/api/errcode/errors_test.go:49:23: loopclosure: loop variable desc captured by func literal (govet)
                if idToDescriptors[desc.Value].Code != ec {
                                   ^
    registry/api/errcode/errors_test.go:50:80: loopclosure: loop variable desc captured by func literal (govet)
                    t.Fatalf("error code in idToDesc isn't correct, %q != %q", idToDescriptors[desc.Value].Code, ec)
                                                                                               ^
    registry/api/errcode/errors_test.go:53:7: loopclosure: loop variable ec captured by func literal (govet)
                if ec.Message() != desc.Message {
                   ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-05-09 16:04:08 +02:00
..
api reference, registry: fix loop variable captured by func literal (govet) 2023-05-09 16:04:08 +02:00
auth registry/auth/token: TestAudienceList_Unmarshal: t.Parallel() 2023-05-09 13:55:16 +02:00
client registry/errors: Parse http forbidden as denied 2023-04-27 19:48:32 +02:00
handlers registry/handlers: use consistent names for test-tables 2023-05-09 14:00:17 +02:00
listener [Server] Listen and serve on a unix socket 2015-05-11 16:00:14 +03:00
middleware format code with gofumpt 2022-11-03 22:48:20 +01:00
proxy Merge pull request #3787 from thaJeztah/simplify_mocks 2022-11-18 08:53:26 +00:00
storage cloudfront: use consistent names for test-tables, t.Parallel() 2023-05-09 14:39:58 +02:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
registry.go fix: rename log to logrus 2023-05-03 19:02:03 +02:00
registry_test.go replace deprecated io/ioutil 2022-11-04 23:47:52 +01:00
root.go format code with gofumpt 2022-11-03 22:48:20 +01:00