1 Star 0 Fork 1

王布衣/pkg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
qrterminal_test.go 903 Bytes
一键复制 编辑 原始数据 按行查看 历史
package qrterminal
import (
"os"
"testing"
)
func TestGenerate(t *testing.T) {
Generate("https://gitee.com/quant1x/gox/qrterminal", L, os.Stdout)
}
func TestGenerateWithConfig(t *testing.T) {
config := Config{
Level: M,
Writer: os.Stdout,
BlackChar: WHITE, // Inverted
WhiteChar: BLACK,
QuietZone: QUIET_ZONE,
}
GenerateWithConfig("https://gitee.com/quant1x/gox/qrterminal", config)
}
func TestGenerateHalfBlock(t *testing.T) {
GenerateHalfBlock("https://gitee.com/quant1x/gox/qrterminal", L, os.Stdout)
}
func TestGenerateWithHalfBlockConfig(t *testing.T) {
config := Config{
Level: M,
Writer: os.Stdout,
HalfBlocks: true,
BlackChar: BLACK_BLACK,
WhiteBlackChar: WHITE_BLACK,
WhiteChar: WHITE_WHITE,
BlackWhiteChar: BLACK_WHITE,
QuietZone: 3,
}
GenerateWithConfig("https://gitee.com/quant1x/gox/qrterminal", config)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/quant1x/pkg.git
git@gitee.com:quant1x/pkg.git
quant1x
pkg
pkg
v0.5.1

搜索帮助