mirror of
https://github.com/containers/podman.git
synced 2025-09-21 19:55:08 +08:00
run modernize -fix ./...
Using golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize + some manual cleanup in libpod/lock/shm/shm_lock_test.go as it generated an unused variable + restored one removed comment Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -442,7 +442,7 @@ func Test_resultToBasicNetworkConfig(t *testing.T) {
|
||||
}
|
||||
|
||||
func benchmarkOCICNIPortsToNetTypesPorts(b *testing.B, ports []types.OCICNIPortMapping) {
|
||||
for n := 0; n < b.N; n++ {
|
||||
for b.Loop() {
|
||||
ocicniPortsToNetTypesPorts(ports)
|
||||
}
|
||||
}
|
||||
@ -515,7 +515,7 @@ func Benchmark_ocicniPortsToNetTypesPorts10k(b *testing.B) {
|
||||
|
||||
func Benchmark_ocicniPortsToNetTypesPorts1m(b *testing.B) {
|
||||
ports := make([]types.OCICNIPortMapping, 0, 1000000)
|
||||
for j := 0; j < 20; j++ {
|
||||
for j := range 20 {
|
||||
for i := int32(1); i <= 50000; i++ {
|
||||
ports = append(ports, types.OCICNIPortMapping{
|
||||
HostPort: i,
|
||||
|
Reference in New Issue
Block a user