...

Source file src/github.com/opentracing/opentracing-go/harness/noop_api_test.go

Documentation: github.com/opentracing/opentracing-go/harness

     1  package harness
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/opentracing/opentracing-go"
     7  )
     8  
     9  func TestAPI(t *testing.T) {
    10  	RunAPIChecks(t, func() (tracer opentracing.Tracer, closer func()) {
    11  		return opentracing.NoopTracer{}, nil
    12  	}, // NoopTracer doesn't do much
    13  		CheckBaggageValues(false),
    14  		CheckInject(false),
    15  		CheckExtract(false),
    16  	)
    17  }
    18  

View as plain text