本文整理汇总了Golang中github.com/orfjackal/gospec/src/gospec.MainGoTest函数的典型用法代码示例。如果您正苦于以下问题:Golang MainGoTest函数的具体用法?Golang MainGoTest怎么用?Golang MainGoTest使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了MainGoTest函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: TestGraphFilters
func TestGraphFilters(t *testing.T) {
r := gospec.NewRunner()
r.AddSpec(DirectedGraphArcsFilterSpec)
r.AddSpec(UndirectedGraphEdgesFilterSpec)
r.AddSpec(MixedGraphConnectionsFilterSpec)
gospec.MainGoTest(r, t)
}
示例2: TestAllSpecs
func TestAllSpecs(t *testing.T) {
r := gospec.NewRunner()
r.AddSpec(LoadSpriteSpec)
r.AddSpec(CommandNSpec)
r.AddSpec(SyncSpec)
gospec.MainGoTest(r, t)
}
示例3: TestSearch
func TestSearch(t *testing.T) {
r := gospec.NewRunner()
{
// paramenerized test creator
cr := func(checkPathFunction CheckDirectedPath) func(c gospec.Context) {
return func(c gospec.Context) {
CheckDirectedPathSpec(c, checkPathFunction)
}
}
r.AddNamedSpec("CheckDirectedPath(Dijkstra)", cr(CheckDirectedPathDijkstra))
}
{
// paramenerized test creator
cr := func(checkPathFunction CheckMixedPath) func(c gospec.Context) {
return func(c gospec.Context) {
CheckMixedPathSpec(c, checkPathFunction)
}
}
r.AddNamedSpec("CheckMixedPath(Dijkstra)", cr(CheckMixedPathDijkstra))
}
r.AddSpec(GetAllMixedPathsSpec)
r.AddSpec(BellmanFordSingleSourceSpec)
gospec.MainGoTest(r, t)
}
示例4: TestAllSpecs
func TestAllSpecs(t *testing.T) {
r := gospec.NewRunner()
r.AddSpec(AiSpec)
r.AddSpec(TermSpec)
r.AddSpec(ChunkSpec)
gospec.MainGoTest(r, t)
}
示例5: TestAllSpecs
func TestAllSpecs(t *testing.T) {
r := gospec.NewRunner()
// r.AddSpec(BatcherSortSpec)
r.AddSpec(AcceptanceSpec)
gospec.MainGoTest(r, t)
}
示例6: TestAllSpecs
// List of all specs here
func TestAllSpecs(t *testing.T) {
r := gospec.NewRunner()
r.AddSpec(CMWCSpec)
r.AddSpec(SlowCMWCSpec)
r.AddSpec(CMWCRandSpec)
r.AddSpec(CMWCGobSpec)
gospec.MainGoTest(r, t)
}
示例7: TestMemcachedServerProcessSpecs
func TestMemcachedServerProcessSpecs(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in benchmark mode.")
return
}
r := gospec.NewRunner()
r.AddSpec(MemcachedServerProcessSpecs)
gospec.MainGoTest(r, t)
}
示例8: TestAllSpecs
func TestAllSpecs(t *testing.T) {
r := gospec.NewRunner()
r.AddSpec(SimpleServerSpec)
r.AddSpec(BasicTypeRegistrySpec)
r.AddSpec(UnorderedTypeRegistrySpec)
r.AddSpec(BlockWriteTypeRegistrySpec)
r.AddSpec(InterfaceTypeRegistrySpec)
gospec.MainGoTest(r, t)
}
示例9: TestRedisClientInterfaceSpecs
func TestRedisClientInterfaceSpecs(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in benchmark mode.")
return
}
r := gospec.NewRunner()
r.AddSpec(RedisClientInterfaceSpecs)
gospec.MainGoTest(r, t)
}
示例10: TestMoneySpecs
func TestMoneySpecs(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in benchmark mode.")
return
}
r := gospec.NewRunner()
r.AddSpec(MoneySpecs)
gospec.MainGoTest(r, t)
}
示例11: TestStopWatchTimerLapSpecs
func TestStopWatchTimerLapSpecs(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in benchmark mode.")
return
}
r := gospec.NewRunner()
r.AddSpec(StopWatchTimerLapSpecs)
gospec.MainGoTest(r, t)
}
示例12: TestAlgorithms
func TestAlgorithms(t *testing.T) {
r := gospec.NewRunner()
r.AddSpec(ReduceDirectPathsSpec)
r.AddSpec(TopologicalSortSpec)
r.AddSpec(SplitGraphToIndependentSubgraphs_mixedSpec)
r.AddSpec(SplitGraphToIndependentSubgraphs_directedSpec)
r.AddSpec(SplitGraphToIndependentSubgraphs_undirectedSpec)
gospec.MainGoTest(r, t)
}
示例13: TestRedisBatchCommandsSpecs
func TestRedisBatchCommandsSpecs(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in benchmark mode.")
return
}
r := gospec.NewRunner()
r.AddSpec(RedisBatchCommandsSpecs)
gospec.MainGoTest(r, t)
}
示例14: TestPreciseLocationSpecs
func TestPreciseLocationSpecs(t *testing.T) {
// Setup the suite
r := gospec.NewRunner()
// Add new specs here:
r.AddSpec(PreciseLocationSpecs)
// Execute the suite
gospec.MainGoTest(r, t)
}
示例15: TestUtilsSpecs
func TestUtilsSpecs(t *testing.T) {
// Setup the suite
r := gospec.NewRunner()
// Add new specs here:
r.AddSpec(UtilsSpecs)
// Execute the suite
gospec.MainGoTest(r, t)
}