File: noop_api_test.go

package info (click to toggle)
golang-github-opentracing-opentracing-go 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports, bookworm-proposed-updates, forky, sid, trixie
  • size: 268 kB
  • sloc: makefile: 18
file content (17 lines) | stat: -rw-r--r-- 332 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package harness

import (
	"testing"

	"github.com/opentracing/opentracing-go"
)

func TestAPI(t *testing.T) {
	RunAPIChecks(t, func() (tracer opentracing.Tracer, closer func()) {
		return opentracing.NoopTracer{}, nil
	}, // NoopTracer doesn't do much
		CheckBaggageValues(false),
		CheckInject(false),
		CheckExtract(false),
	)
}