github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/go/internal/modfetch/zip_sum_test/zip_sum_test.go (about) 1 // Copyright 2019 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Package zip_sum_test tests that the module zip files produced by modfetch 6 // have consistent content sums. Ideally the zip files themselves are also 7 // stable over time, though this is not strictly necessary. 8 // 9 // This test loads a table from testdata/zip_sums.csv. The table has columns 10 // for module path, version, content sum, and zip file hash. The table 11 // includes a large number of real modules. The test downloads these modules 12 // in direct mode and verifies the zip files. 13 // 14 // This test is very slow, and it depends on outside modules that change 15 // frequently, so this is a manual test. To enable it, pass the -zipsum flag. 16 package zip_sum_test