本文整理汇总了Golang中gopkg/in/check/v1.TestingT函数的典型用法代码示例。如果您正苦于以下问题:Golang TestingT函数的具体用法?Golang TestingT怎么用?Golang TestingT使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了TestingT函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: TestEC2
func TestEC2(t *testing.T) {
if *amazon {
registerAmazonTests()
}
registerLocalTests()
gc.TestingT(t)
}
开发者ID:Pankov404,项目名称:juju,代码行数:7,代码来源:suite_test.go
示例2: TestPackage
func TestPackage(t *stdtesting.T) {
if *amazon {
registerAmazonTests()
}
registerLocalTests()
gc.TestingT(t)
}
开发者ID:bac,项目名称:juju,代码行数:7,代码来源:package_test.go
示例3: MgoTestPackage
// MgoTestPackage should be called to register the tests for any package
// that requires a MongoDB server. If certs is non-nil, a secure SSL connection
// will be used from client to server.
func MgoTestPackage(t *testing.T, certs *Certs) {
if err := MgoServer.Start(certs); err != nil {
t.Fatal(err)
}
defer MgoServer.Destroy()
gc.TestingT(t)
}
开发者ID:juju,项目名称:testing,代码行数:10,代码来源:mgo.go
示例4: TestPackage
func TestPackage(t *testing.T) {
//TODO(bogdanteleaga): Fix this on windows
if runtime.GOOS == "windows" {
t.Skip("bug 1403084: Skipping rsyslog tests on windows")
}
gc.TestingT(t)
}
开发者ID:Pankov404,项目名称:juju,代码行数:7,代码来源:package_test.go
示例5: TestPackage
func TestPackage(t *stdtesting.T) {
if testing.RaceEnabled {
t.Skip("skipping package under -race, see LP 1497801")
}
registerLocalTests()
gc.TestingT(t)
}
开发者ID:imoapps,项目名称:juju,代码行数:7,代码来源:package_test.go
示例6: Test
func Test(t *stdtesting.T) {
//TODO(bogdanteleaga): Fix these on windows
if runtime.GOOS == "windows" {
t.Skip("bug 1403084: Skipping for now on windows")
}
gc.TestingT(t)
}
开发者ID:Pankov404,项目名称:juju,代码行数:7,代码来源:mongo_test.go
示例7: Test
func Test(t *testing.T) {
//TODO(bogdanteleaga): Fix this once manual provider is supported on
//windows
if runtime.GOOS == "windows" {
t.Skip("Manual provider is not yet supported on windows")
}
gc.TestingT(t)
}
开发者ID:howbazaar,项目名称:juju,代码行数:8,代码来源:suite_test.go
示例8: Test
func Test(t *testing.T) {
err := components.RegisterForServer()
if err != nil {
t.Fatalf("could not register server components: %v", err)
}
gc.TestingT(t)
}
开发者ID:howbazaar,项目名称:juju,代码行数:8,代码来源:package_test.go
示例9: TestPackage
func TestPackage(t *stdtesting.T) {
if testing.RaceEnabled {
t.Skip("skipping package under -race, see LP 1519141")
}
if *amazon {
registerAmazonTests()
}
registerLocalTests()
gc.TestingT(t)
}
开发者ID:AlexisBruemmer,项目名称:juju,代码行数:10,代码来源:package_test.go
示例10: Test
func Test(t *testing.T) {
if *live {
cred, err := identity.CompleteCredentialsFromEnv()
if err != nil {
t.Fatalf("Error setting up test suite: %s", err.Error())
}
registerLiveTests(cred)
}
registerLocalTests()
gc.TestingT(t)
}
开发者ID:howbazaar,项目名称:juju,代码行数:11,代码来源:package_test.go
示例11: Test
func Test(t *testing.T) {
//TODO(bogdanteleaga): Fix this once manual provider is supported on
//windows
if runtime.GOOS == "windows" {
t.Skip("Manual provider is not yet supported on windows")
}
// Prevent any use of ssh for storage.
*manual.NewSSHStorage = func(sshHost, storageDir, storageTmpdir string) (storage.Storage, error) {
return nil, nil
}
gc.TestingT(t)
}
开发者ID:Pankov404,项目名称:juju,代码行数:12,代码来源:suite_test.go
示例12: Test
func Test(t *stdtesting.T) {
if runtime.GOOS == "windows" {
t.Skip("LXC is not supported on windows")
}
/* if there's not a lxd available, don't run the tests */
/*
_, err := lxd.ConnectLocal("")
if err != nil {
t.Skip("LXD is not avalilable %s", err)
}
*/
gc.TestingT(t)
}
开发者ID:makyo,项目名称:juju,代码行数:14,代码来源:lxd_test.go
示例13: Test
func Test(t *stdtesting.T) {
if *live {
if *vendor == "" {
t.Fatal("missing vendor")
}
var ok bool
var testData liveTestData
if testData, ok = liveURLs[*vendor]; !ok {
keys := reflect.ValueOf(liveURLs).MapKeys()
t.Fatalf("Unknown vendor %s. Must be one of %s", *vendor, keys)
}
registerLiveSimpleStreamsTests(testData.baseURL, imagemetadata.NewImageConstraint(simplestreams.LookupParams{
CloudSpec: testData.validCloudSpec,
Series: []string{"quantal"},
Arches: []string{"amd64"},
}), testData.requireSigned)
}
registerSimpleStreamsTests()
gc.TestingT(t)
}
开发者ID:bac,项目名称:juju,代码行数:20,代码来源:simplestreams_test.go
示例14: TestAll
func TestAll(t *testing.T) {
gc.TestingT(t)
}
开发者ID:AlexisBruemmer,项目名称:juju,代码行数:3,代码来源:package_test.go
示例15: Test
func Test(t *stdtesting.T) {
gc.TestingT(t)
}
开发者ID:kat-co,项目名称:utils,代码行数:3,代码来源:package_test.go
示例16: Test
func Test(t *testing.T) { checker.TestingT(t) }
开发者ID:este-xx,项目名称:go-expanse,代码行数:1,代码来源:main_test.go
示例17: Test
func Test(t *stdtesting.T) {
if runtime.GOOS != "linux" {
t.Skip("LXC is a Linux thing")
}
gc.TestingT(t)
}
开发者ID:imoapps,项目名称:juju,代码行数:6,代码来源:lxcutils_test.go
示例18: Test
func Test(t *testing.T) {
gc.TestingT(t)
}
开发者ID:Charlesdong,项目名称:godropbox,代码行数:3,代码来源:column_test.go
示例19: Test
// Hook up gocheck into the gotest runner.
func Test(t *testing.T) { test.TestingT(t) }
开发者ID:freedmand,项目名称:doc.vu,代码行数:2,代码来源:gorethink_test.go
示例20: TestAzureProvider
func TestAzureProvider(t *stdtesting.T) {
gc.TestingT(t)
}
开发者ID:Pankov404,项目名称:juju,代码行数:3,代码来源:azure_test.go
注:本文中的gopkg/in/check/v1.TestingT函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论