github.com/egonelbre/exp@v0.0.0-20240430123955-ed1d3aa93911/combiner/all_test.go (about)

     1  package combiner
     2  
     3  import (
     4  	"flag"
     5  	"testing"
     6  )
     7  
     8  func Test(t *testing.T) { All.TestDefault(t) }
     9  
    10  var latency = flag.Bool("latency", false, "run latency measurements")
    11  
    12  func TestLatency(t *testing.T) {
    13  	if !*latency {
    14  		t.Skip("latency measurements disabled")
    15  	}
    16  	All.LatencyDefault(t)
    17  }
    18  
    19  func Benchmark(b *testing.B) { All.BenchmarkDefault(b) }