distribution/reference
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
..
fuzz_test.go Fuzzing: Rewrite existing fuzzers to native go fuzzers 2022-11-12 17:30:10 +00:00
helpers.go reference: ParseDockerRef: slight refactor, and update docs 2022-11-20 15:07:24 +01:00
normalize.go reference: introduce const for "localhost" 2022-11-22 23:45:26 +01:00
normalize_test.go reference, registry: fix loop variable captured by func literal (govet) 2023-05-09 16:04:08 +02:00
reference.go reference: introduce remoteName variable 2022-11-22 23:45:23 +01:00
reference_test.go reference: use consistent names for test-tables 2023-05-09 13:54:37 +02:00
regexp.go Fix separator regex 2022-12-22 14:50:50 -08:00
regexp_bench_test.go reference: add BenchmarkParse 2023-04-29 19:31:21 +02:00
regexp_test.go reference: use consistent names for test-tables 2023-05-09 13:54:37 +02:00
sort.go reference: ParseDockerRef: slight refactor, and update docs 2022-11-20 15:07:24 +01:00
sort_test.go reference: run tests with t.Parallel() 2022-11-18 21:17:56 +01:00