當前位置: 首頁>>代碼示例>>Golang>>正文


Golang gocheck.TestingT函數代碼示例

本文整理匯總了Golang中launchpad/net/gocheck.TestingT函數的典型用法代碼示例。如果您正苦於以下問題:Golang TestingT函數的具體用法?Golang TestingT怎麽用?Golang TestingT使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了TestingT函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。

示例1: TestJoyent

func TestJoyent(t *testing.T) {
	if *live {
		registerLiveTests()
	}
	registerLocalTests()
	gc.TestingT(t)
}
開發者ID:jameinel,項目名稱:core,代碼行數:7,代碼來源:provider_test.go

示例2: Test

func Test(t *testing.T) {
	gocheck.TestingT(t)
	if suitesRun != suitesRunExpected && flag.Lookup("gocheck.f").Value.String() == "" {
		critical(fmt.Sprintf("Expected %d suites to run rather than %d",
			suitesRunExpected, suitesRun))
	}
}
開發者ID:CloudMarc,項目名稱:mgo,代碼行數:7,代碼來源:gocheck_test.go

示例3: Test

func Test(t *testing.T) {
	// Prevent any use of ssh for storage.
	*manual.NewSSHStorage = func(sshHost, storageDir, storageTmpdir string) (storage.Storage, error) {
		return nil, nil
	}
	gc.TestingT(t)
}
開發者ID:kapilt,項目名稱:juju,代碼行數:7,代碼來源:suite_test.go

示例4: 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:natefinch,項目名稱:testing,代碼行數:10,代碼來源:mgo.go

示例5: TestEC2

func TestEC2(t *testing.T) {
	if *amazon {
		registerAmazonTests()
	}
	registerLocalTests()
	gc.TestingT(t)
}
開發者ID:jiasir,項目名稱:juju,代碼行數:7,代碼來源:suite_test.go

示例6: MgoTestPackageSsl

func MgoTestPackageSsl(t *stdtesting.T, ssl bool) {
	if err := MgoServer.Start(ssl); err != nil {
		t.Fatal(err)
	}
	defer MgoServer.Destroy()
	gc.TestingT(t)
}
開發者ID:jkary,項目名稱:core,代碼行數:7,代碼來源:mgo.go

示例7: Test

func Test(t *testing.T) {
	creds, err := jpc.CompleteCredentialsFromEnv(*keyName)
	if err != nil {
		t.Fatalf("Error setting up test suite: %v", err)
	}

	gc.Suite(&ClientSuite{creds: creds})
	gc.TestingT(t)
}
開發者ID:asteris-llc,項目名稱:gocommon,代碼行數:9,代碼來源:client_test.go

示例8: Test

func Test(t *testing.T) {
	if *live {
		creds, err := jpc.CompleteCredentialsFromEnv(*keyName)
		if err != nil {
			t.Fatalf("Error setting up test suite: %s", err.Error())
		}
		registerJoyentCloudTests(creds)
	}
	registerLocalTests(*keyName)
	gc.TestingT(t)
}
開發者ID:BrianHicks,項目名稱:gosdc,代碼行數:11,代碼來源:cloudapi_test.go

示例9: Test

func Test(t *testing.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:jameinel,項目名稱:core,代碼行數:20,代碼來源:simplestreams_test.go

示例10: Test

func Test(t *testing.T) {
	// check environment variables
	if os.Getenv("LIVE") != "" {
		var err error
		*live, err = strconv.ParseBool(os.Getenv("LIVE"))
		if err != nil {
			t.Fatal(err)
		}
	}

	if os.Getenv("KEY_NAME") != "" {
		*keyName = os.Getenv("KEY_NAME")
	}

	if *live {
		creds, err := jpc.CompleteCredentialsFromEnv(*keyName)
		if err != nil {
			t.Fatalf("Error setting up test suite: %s", err.Error())
		}
		registerJoyentCloudTests(creds)
	}
	registerLocalTests(*keyName)
	gc.TestingT(t)
}
開發者ID:cehoffman,項目名稱:gosdc,代碼行數:24,代碼來源:cloudapi_test.go

示例11: TestAzureProvider

func TestAzureProvider(t *stdtesting.T) {
	gc.TestingT(t)
}
開發者ID:jameinel,項目名稱:core,代碼行數:3,代碼來源:azure_test.go

示例12: Test

//Hookup gocheck with go test
func Test(t *testing.T) {
	chk.TestingT(t)
}
開發者ID:roacobb,項目名稱:geard,代碼行數:4,代碼來源:integration_test.go

示例13: TestSetting

func TestSetting(t *testing.T) {
	C.TestingT(t)
}
開發者ID:felixonmars,項目名稱:dde-daemon,代碼行數:3,代碼來源:setting_test.go

示例14: Test

func Test(t *testing.T) {
	gocheck.TestingT(t)
}
開發者ID:kixelated,項目名稱:goamz,代碼行數:3,代碼來源:sdb_test.go

示例15: Test

func Test(t *stdtesting.T) {
	gc.TestingT(t)
}
開發者ID:jameinel,項目名稱:core,代碼行數:3,代碼來源:tailer_test.go


注:本文中的launchpad/net/gocheck.TestingT函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。