(t *testing.T)
| 3 | import "testing" |
| 4 | |
| 5 | func TestTraceAndSpanIDLengths(t *testing.T) { |
| 6 | traceID := NewTraceID() |
| 7 | spanID := NewSpanID() |
| 8 | |
| 9 | if len(traceID) != 32 { |
| 10 | t.Fatalf("expected trace id length 32, got %d", len(traceID)) |
| 11 | } |
| 12 | if len(spanID) != 16 { |
| 13 | t.Fatalf("expected span id length 16, got %d", len(spanID)) |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | func TestTraceIDIsUsuallyUnique(t *testing.T) { |
| 18 | a := NewTraceID() |
nothing calls this directly
no test coverage detected