3 Star 1 Fork 0

vrv_media/go-micro-framework

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
app
core
example
pkg
appcore
code
common
config
dao
distributed_lock
errors
httputil
i18n
kafka
logger
mq
options
pool
slice
test
mock_func.go
suit_test.go
suite.go
registry
server
tools
vrv/crypt
.gitignore
LICENSE
README.md
go.mod
克隆/下载
suite.go 694 Bytes
一键复制 编辑 原始数据 按行查看 历史
天雨流芳 提交于 11个月前 . 更新测试套
package test
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
)
type TestingSuite struct {
*require.Assertions
proxy suite.Suite
}
func (s *TestingSuite) SetS(suite suite.TestingSuite) {
s.proxy.SetS(suite)
}
func (s *TestingSuite) T() *testing.T {
return s.proxy.T()
}
func (s *TestingSuite) SetT(t *testing.T) {
s.proxy.SetT(t)
s.Assertions = require.New(t)
}
func (s *TestingSuite) Require() *require.Assertions {
return s.proxy.Require()
}
func (s *TestingSuite) Assert() *assert.Assertions {
return s.proxy.Assert()
}
func (s *TestingSuite) Fn() *MockFunc {
return NewMockFunc(s.T())
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/vrv_media/go-micro-framework.git
git@gitee.com:vrv_media/go-micro-framework.git
vrv_media
go-micro-framework
go-micro-framework
d588655e0a19

搜索帮助