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


Golang C.Skip方法代碼示例

本文整理匯總了Golang中github.com/motain/gocheck.C.Skip方法的典型用法代碼示例。如果您正苦於以下問題:Golang C.Skip方法的具體用法?Golang C.Skip怎麽用?Golang C.Skip使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在github.com/motain/gocheck.C的用法示例。


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

示例1: SetUpSuite

func (s *AmazonServerSuite) SetUpSuite(c *gocheck.C) {
	if !*amazon {
		c.Skip("AmazonServerSuite tests not enabled")
	}
	s.srv.SetUp(c)
	s.ServerTests.elb = elb.New(s.srv.auth, aws.USEast)
}
開發者ID:rsherman-kabam,項目名稱:go-amz,代碼行數:7,代碼來源:elbt_test.go

示例2: SetUpSuite

func (s *AmazonServerSuite) SetUpSuite(c *gocheck.C) {
	if !testutil.Amazon {
		c.Skip("AmazonServerSuite tests not enabled")
	}
	s.srv.SetUp(c)
	s.ServerTests.ec2 = ec2.NewWithClient(s.srv.auth, aws.USEast, testutil.DefaultClient)
}
開發者ID:dutchcoders,項目名稱:goamz,代碼行數:7,代碼來源:ec2t_test.go

示例3: SetUpSuite

func (s *AmazonClientSuite) SetUpSuite(c *gocheck.C) {
	if !testutil.Amazon {
		c.Skip("AmazonClientSuite tests not enabled")
	}
	s.srv.SetUp(c)
	s.iam = iam.New(s.srv.auth, aws.USEast)
}
開發者ID:dutchcoders,項目名稱:goamz,代碼行數:7,代碼來源:iami_test.go

示例4: SetUpSuite

func (s *AmazonClientSuite) SetUpSuite(c *gocheck.C) {
	if !*amazon {
		c.Skip("AmazonClientSuite tests not enabled")
	}
	s.srv.SetUp(c)
	s.elb = elb.New(s.srv.auth, aws.USEast)
	s.ec2 = ec2.New(s.srv.auth, aws.USEast)
}
開發者ID:rsherman-kabam,項目名稱:go-amz,代碼行數:8,代碼來源:elbi_test.go

示例5: SetUpSuite

func (s *AmazonClientSuite) SetUpSuite(c *gocheck.C) {
	if !testutil.Amazon {
		c.Skip("live tests against AWS disabled (no -amazon)")
	}
	s.srv.SetUp(c)
	s.s3 = s3.New(s.srv.auth, s.Region)
	// In case tests were interrupted in the middle before.
	s.ClientTests.Cleanup()
}
開發者ID:dutchcoders,項目名稱:goamz,代碼行數:9,代碼來源:s3i_test.go

示例6: SetUpSuite

func (s *LiveSuite) SetUpSuite(c *gocheck.C) {
	if !Amazon {
		c.Skip("amazon tests not enabled (-amazon flag)")
	}
	auth, err := aws.EnvAuth()
	if err != nil {
		c.Fatal(err.Error())
	}
	s.auth = auth
}
開發者ID:dutchcoders,項目名稱:goamz,代碼行數:10,代碼來源:suite.go

示例7: SetUpSuite

func (s *SuiteI) SetUpSuite(c *gocheck.C) {
	if !*integration {
		c.Skip("Integration tests not enabled (-i flag)")
	}
	auth, err := aws.EnvAuth()
	if err != nil {
		c.Fatal(err.Error())
	}
	s.auth = auth
}
開發者ID:rsherman-kabam,項目名稱:go-amz,代碼行數:10,代碼來源:suite_test.go

示例8: SetUpSuite

func (s *TableSuite) SetUpSuite(c *gocheck.C) {
	setUpAuth(c)
	s.DynamoDBTest.TableDescriptionT = s.TableDescriptionT
	s.server = &dynamodb.Server{dynamodb_auth, dynamodb_region}
	pk, err := s.TableDescriptionT.BuildPrimaryKey()
	if err != nil {
		c.Skip(err.Error())
	}
	s.table = s.server.NewTable(s.TableDescriptionT.TableName, pk)

	// Cleanup
	s.TearDownSuite(c)
}
開發者ID:rsherman-kabam,項目名稱:go-amz,代碼行數:13,代碼來源:table_test.go

示例9: setUpAuth

func setUpAuth(c *gocheck.C) {
	if !*amazon {
		c.Skip("Test against amazon not enabled.")
	}
	if *local {
		c.Log("Using local server")
		dynamodb_region = aws.Region{DynamoDBEndpoint: "http://127.0.0.1:8000"}
		dynamodb_auth = aws.Auth{AccessKey: "DUMMY_KEY", SecretKey: "DUMMY_SECRET"}
	} else {
		c.Log("Using REAL AMAZON SERVER")
		dynamodb_region = aws.USEast
		auth, err := aws.EnvAuth()
		if err != nil {
			c.Fatal(err)
		}
		dynamodb_auth = auth
	}
}
開發者ID:dutchcoders,項目名稱:goamz,代碼行數:18,代碼來源:dynamodb_test.go

示例10: SetUpSuite

func (s *ItemSuite) SetUpSuite(c *gocheck.C) {
	setUpAuth(c)
	s.DynamoDBTest.TableDescriptionT = s.TableDescriptionT
	s.server = &dynamodb.Server{dynamodb_auth, dynamodb_region}
	pk, err := s.TableDescriptionT.BuildPrimaryKey()
	if err != nil {
		c.Skip(err.Error())
	}
	s.table = s.server.NewTable(s.TableDescriptionT.TableName, pk)

	// Cleanup
	s.TearDownSuite(c)
	_, err = s.server.CreateTable(s.TableDescriptionT)
	if err != nil {
		c.Fatal(err)
	}
	s.WaitUntilStatus(c, "ACTIVE")
}
開發者ID:rsherman-kabam,項目名稱:go-amz,代碼行數:18,代碼來源:item_test.go

示例11: TestGetBuildersMustReturnListOfBuilders

func (s *HandlerSuite) TestGetBuildersMustReturnListOfBuilders(c *gc.C) {
	c.Skip("todo: to make this test work, we will have to separate the 'buildbot' into a entitiy, and make it an interface, mockable, so we can mock the idea of request the list")
}
開發者ID:nbari,項目名稱:buildbot-dashboard,代碼行數:3,代碼來源:handler_test.go

示例12: TestGetSingleBuilderMustReturnBuilder

func (s *HandlerSuite) TestGetSingleBuilderMustReturnBuilder(c *gc.C) {
	c.Skip("todo")
}
開發者ID:nbari,項目名稱:buildbot-dashboard,代碼行數:3,代碼來源:handler_test.go

示例13: TestNewContainerShouldNotSetFilterForInvalidRegex

func (s *ContainerBagSuite) TestNewContainerShouldNotSetFilterForInvalidRegex(c *gc.C) {
	c.Skip("todo")
}
開發者ID:nbari,項目名稱:buildbot-dashboard,代碼行數:3,代碼來源:container_test.go

示例14: TestNewContainerShouldReturnProperHashedUrl

func (s *ContainerBagSuite) TestNewContainerShouldReturnProperHashedUrl(c *gc.C) {
	c.Skip("todo")
}
開發者ID:nbari,項目名稱:buildbot-dashboard,代碼行數:3,代碼來源:container_test.go

示例15: TestNewContainerBagMustInitializeComponentsIfConfigProvided

func (s *ContainerBagSuite) TestNewContainerBagMustInitializeComponentsIfConfigProvided(c *gc.C) {
	c.Skip("todo")
}
開發者ID:nbari,項目名稱:buildbot-dashboard,代碼行數:3,代碼來源:container_test.go


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