跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

浏览文件

fuzz_test.go

20 行 · 470 B历史下载
1// SPDX-FileCopyrightText: Copyright The Lima Authors
2// SPDX-License-Identifier: Apache-2.0
3
4package cidata
5
6import (
7 "testing"
8
9 "github.com/lima-vm/lima/v2/pkg/networks"
10)
11
12func 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}