本文整理汇总了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)
}