本文整理汇总了Golang中github.com/orfjackal/gospec/src/gospec.NewRunner函数的典型用法代码示例。如果您正苦于以下问题:Golang NewRunner函数的具体用法?Golang NewRunner怎么用?Golang NewRunner使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NewRunner函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: TestGraphFilters
func TestGraphFilters(t *testing.T) {
r := gospec.NewRunner()
r.AddSpec(DirectedGraphArcsFilterSpec)
r.AddSpec(UndirectedGraphEdgesFilterSpec)
r.AddSpec(MixedGraphConnectionsFilterSpec)
gospec.MainGoTest(r, t)
}
开发者ID:tusj,项目名称:go-graph,代码行数:7,代码来源:filters_test.go
示例2: TestAllSpecs
func TestAllSpecs(t *testing.T) {
r := gospec.NewRunner()
r.AddSpec(LoadSpriteSpec)
r.AddSpec(CommandNSpec)
r.AddSpec(SyncSpec)
gospec.MainGoTest(r, t)
}
开发者ID:runningwild,项目名称:glop,代码行数:7,代码来源:all_specs_test.go
示例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)
}
开发者ID:tusj,项目名称:go-graph,代码行数:27,代码来源:search_test.go
示例4: TestAllSpecs
func TestAllSpecs(t *testing.T) {
r := gospec.NewRunner()
r.AddSpec(AiSpec)
r.AddSpec(TermSpec)
r.AddSpec(ChunkSpec)
gospec.MainGoTest(r, t)
}
开发者ID:MobRulesGames,项目名称:glop,代码行数:7,代码来源:all_specs_test.go
示例5: TestAllSpecs
func TestAllSpecs(t *testing.T) {
r := gospec.NewRunner()
// r.AddSpec(BatcherSortSpec)
r.AddSpec(AcceptanceSpec)
gospec.MainGoTest(r, t)
}
开发者ID:eshepelyuk,项目名称:CodingDojoCnUa,代码行数:8,代码来源:all_specs_test.go
示例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)
}
开发者ID:runningwild,项目名称:cmwc,代码行数:9,代码来源:all_specs_test.go
示例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)
}
开发者ID:RUNDSP,项目名称:dog_pool,代码行数:9,代码来源:memcached_server_factory_test.go
示例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)
}
开发者ID:runningwild,项目名称:sgf,代码行数:9,代码来源:all_specs_test.go
示例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)
}
开发者ID:RUNDSP,项目名称:dog_pool,代码行数:9,代码来源:redis_client_interface_test.go
示例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)
}
开发者ID:RUNDSP,项目名称:go_money,代码行数:9,代码来源:money_test.go
示例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)
}
开发者ID:RUNDSP,项目名称:dog_pool,代码行数:9,代码来源:stop_watch_lap_timer_test.go
示例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)
}
开发者ID:tusj,项目名称:go-graph,代码行数:9,代码来源:algorithms_test.go
示例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)
}
开发者ID:RUNDSP,项目名称:dog_pool,代码行数:9,代码来源:redis_batch_commands_test.go
示例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)
}
开发者ID:RUNDSP,项目名称:ggeohash,代码行数:10,代码来源:precise_location_test.go
示例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)
}
开发者ID:RUNDSP,项目名称:ggeohash,代码行数:10,代码来源:utils_test.go
示例16: TestAllSpecs
func TestAllSpecs(t *testing.T) {
r := gospec.NewRunner()
r.AddSpec(NaturalKeySpec)
r.AddSpec(DerivedKeySpec)
r.AddSpec(NestedDerivedKeySpec)
r.AddSpec(EventSpec)
r.AddSpec(EventListenerSpec)
r.AddSpec(AxisSpec)
gospec.MainGoTest(r, t)
}
开发者ID:losinggeneration,项目名称:glop,代码行数:10,代码来源:all_specs_test.go
示例17: TestAllSpecs
func TestAllSpecs(t *testing.T) {
// Setup the suite
r := gospec.NewRunner()
// Add new specs here:
r.AddSpec(GeoHashSpec)
// Execute the suite
gospec.MainGoTest(r, t)
}
开发者ID:RUNDSP,项目名称:go-geohash,代码行数:10,代码来源:all_spec_test.go
示例18: TestDecodePositionSpecs
func TestDecodePositionSpecs(t *testing.T) {
// Setup the suite
r := gospec.NewRunner()
// Add new specs here:
r.AddSpec(DecodePositionSpecs)
// Execute the suite
gospec.MainGoTest(r, t)
}
开发者ID:RUNDSP,项目名称:ggeohash,代码行数:10,代码来源:decode_position_test.go
示例19: TestAllSpecs
// List of all specs here
func TestAllSpecs(t *testing.T) {
r := gospec.NewRunner()
r.AddSpec(ZBoxSpec)
r.AddSpec(ZBoxReverseSpec)
r.AddSpec(LongestSuffixAsPrefixSpec)
r.AddSpec(BoyerMooreSpec)
r.AddSpec(BoyerMooreReaderSpec)
r.AddSpec(AhoCorasickSpec)
r.AddSpec(AhoCorasickReaderSpec)
gospec.MainGoTest(r, t)
}
开发者ID:losinggeneration,项目名称:stringz,代码行数:12,代码来源:all_specs_test.go
示例20: TestAllSpecs
func TestAllSpecs(t *testing.T) {
r := gospec.NewRunner()
r.AddSpec(GCSpec)
r.AddSpec(NewArraySpec)
r.AddSpec(NewArray2Spec)
r.AddSpec(NewArray3Spec)
gospec.MainGoTest(r, t)
// TODO: Investigate a less stupid way of doing tests in serial
// TODO: Investigate what about fftw makes tests need to be serial
r = gospec.NewRunner()
r.AddSpec(FFTSpec)
gospec.MainGoTest(r, t)
r = gospec.NewRunner()
r.AddSpec(FFT2Spec)
gospec.MainGoTest(r, t)
r = gospec.NewRunner()
r.AddSpec(FFT3Spec)
gospec.MainGoTest(r, t)
}
开发者ID:jvlmdr,项目名称:go-fftw,代码行数:20,代码来源:all_specs_test.go
注:本文中的github.com/orfjackal/gospec/src/gospec.NewRunner函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论