1 Star 0 Fork 0

孙立/cli

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
fish_test.go 335 Bytes
一键复制 编辑 原始数据 按行查看 历史
package cli
import (
"testing"
)
func TestFishCompletion(t *testing.T) {
// Given
app := testApp()
app.Flags = append(app.Flags, &PathFlag{
Name: "logfile",
TakesFile: true,
})
// When
res, err := app.ToFishCompletion()
// Then
expect(t, err, nil)
expectFileContent(t, "testdata/expected-fish-full.fish", res)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/JackSun6/cli.git
git@gitee.com:JackSun6/cli.git
JackSun6
cli
cli
master

搜索帮助