本文整理匯總了Golang中github.com/wallyworld/core/testing.MgoTestPackage函數的典型用法代碼示例。如果您正苦於以下問題:Golang MgoTestPackage函數的具體用法?Golang MgoTestPackage怎麽用?Golang MgoTestPackage使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了MgoTestPackage函數的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: TestPackage
func TestPackage(t *stdtesting.T) {
// Change the default init dir in worker/deployer,
// so the deployer doesn't try to remove upstart
// jobs from tests.
restore := testing.PatchValue(&deployer.InitDir, mkdtemp("juju-worker-deployer"))
defer restore()
// TODO(waigani) 2014-03-19 bug 1294458
// Refactor to use base suites
// Change the path to "juju-run", so that the
// tests don't try to write to /usr/local/bin.
jujuRun = mktemp("juju-run", "")
defer os.Remove(jujuRun)
// Create a CA certificate available for all tests.
caCertFile = mktemp("juju-test-cert", coretesting.CACert)
defer os.Remove(caCertFile)
coretesting.MgoTestPackage(t)
}
示例2: Test
func Test(t *stdtesting.T) {
coretesting.MgoTestPackage(t)
}
示例3: TestAll
func TestAll(t *stdtesting.T) {
testing.MgoTestPackage(t)
}
示例4: TestPackage
func TestPackage(t *stdtesting.T) {
// TODO(fwereade) 2014-03-21 not-worth-a-bug-number
// rewrite BundlesDir tests to use the mocks below and not require an API
// server and associated gubbins.
coretesting.MgoTestPackage(t)
}
示例5: TestMgoSuite
func TestMgoSuite(t *stdtesting.T) {
testing.MgoTestPackage(t)
}