Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
lima-vm
GitHub Repository: lima-vm/lima
Path: blob/master/pkg/cidata/fuzz_test.go
2601 views
1
// SPDX-FileCopyrightText: Copyright The Lima Authors
2
// SPDX-License-Identifier: Apache-2.0
3
4
package cidata
5
6
import (
7
"testing"
8
9
"github.com/lima-vm/lima/v2/pkg/networks"
10
)
11
12
func FuzzSetupEnv(f *testing.F) {
13
f.Fuzz(func(_ *testing.T, suffix string, localhost bool) {
14
prefix := "http://127.0.0.1:8080/"
15
if localhost {
16
prefix = "http://localhost:8080/"
17
}
18
_, _ = setupEnv(map[string]string{"http_proxy": prefix + suffix}, false, networks.SlirpGateway)
19
})
20
}
21
22