1 Star 0 Fork 0

smartos-club / triton-kubernetes

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
t.go 479 Bytes
一键复制 编辑 原始数据 按行查看 历史
Nirav Patel 提交于 2018-04-18 11:27 . Enhance version module
package test_pkg
import (
"fmt"
"strings"
"testing"
)
type T struct {
t *testing.T
}
func NewT(t *testing.T) T {
return T{t: t}
}
func (t *T) Fatal(context string, expected, actual interface{}) {
divider := strings.Repeat("=", len(context))
output := fmt.Sprintf(
"\n\n%v\n%v\n\nexpected:\n\n\t%v\n\ngot:\n\n\t%v\n",
context,
divider,
expected,
actual,
)
t.t.Fatal(output)
}
func (t *T) Logf(fmt string, args ...interface{}) {
t.t.Logf(fmt, args...)
}
1
https://gitee.com/smartos-club/triton-kubernetes.git
git@gitee.com:smartos-club/triton-kubernetes.git
smartos-club
triton-kubernetes
triton-kubernetes
v0.9.1

搜索帮助