本文整理匯總了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)
}
示例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))
}
}
示例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)
}
示例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)
}
示例5: TestEC2
func TestEC2(t *testing.T) {
if *amazon {
registerAmazonTests()
}
registerLocalTests()
gc.TestingT(t)
}
示例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)
}
示例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)
}
示例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)
}
示例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)
}
示例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)
}
示例11: TestAzureProvider
func TestAzureProvider(t *stdtesting.T) {
gc.TestingT(t)
}
示例12: Test
//Hookup gocheck with go test
func Test(t *testing.T) {
chk.TestingT(t)
}
示例13: TestSetting
func TestSetting(t *testing.T) {
C.TestingT(t)
}
示例14: Test
func Test(t *testing.T) {
gocheck.TestingT(t)
}
示例15: Test
func Test(t *stdtesting.T) {
gc.TestingT(t)
}