src/testing: stub b.RunParallel() and PB.Next()
Этот коммит содержится в:
		
							родитель
							
								
									0285171484
								
							
						
					
					
						коммит
						343146f35c
					
				
					 1 изменённых файлов: 16 добавлений и 0 удалений
				
			
		| 
						 | 
					@ -218,3 +218,19 @@ func (b *B) add(other BenchmarkResult) {
 | 
				
			||||||
	r.N = 1
 | 
						r.N = 1
 | 
				
			||||||
	r.T += time.Duration(other.NsPerOp())
 | 
						r.T += time.Duration(other.NsPerOp())
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// A PB is used by RunParallel for running parallel benchmarks.
 | 
				
			||||||
 | 
					type PB struct {
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Next reports whether there are more iterations to execute.
 | 
				
			||||||
 | 
					func (pb *PB) Next() bool {
 | 
				
			||||||
 | 
						return false
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// RunParallel runs a benchmark in parallel.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Not implemented
 | 
				
			||||||
 | 
					func (b *B) RunParallel(body func(*PB)) {
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Загрузка…
	
	Создание таблицы
		
		Сослаться в новой задаче