1 Star 0 Fork 0

CNCF/devstatscode

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
mgetc_test.go 412 Bytes
一键复制 编辑 原始数据 按行查看 历史
Lukasz Gryglicki 提交于 2019-03-21 17:05 +08:00 . Moved package [wip]
package devstatscode
import (
"testing"
lib "github.com/cncf/devstatscode"
)
func TestMgetc(t *testing.T) {
// Environment context parse
var ctx lib.Ctx
ctx.Init()
ctx.TestMode = true
// Set context's Mgetc manually (don't need to repeat tests from context_test.go)
ctx.Mgetc = "y"
expected := "y"
got := lib.Mgetc(&ctx)
if got != expected {
t.Errorf("expected %v, got %v", expected, got)
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cncf/devstatscode.git
git@gitee.com:cncf/devstatscode.git
cncf
devstatscode
devstatscode
master

搜索帮助