github.com/newrelic/go-agent@v3.26.0+incompatible/internal/trace_id_generator_test.go (about)

     1  // Copyright 2020 New Relic Corporation. All rights reserved.
     2  // SPDX-License-Identifier: Apache-2.0
     3  
     4  package internal
     5  
     6  import "testing"
     7  
     8  func TestTraceIDGenerator(t *testing.T) {
     9  	tg := NewTraceIDGenerator(12345)
    10  	id := tg.GenerateTraceID()
    11  	if id != "d9466896a525ccbf" {
    12  		t.Error(id)
    13  	}
    14  }