Skip to content

Commit

Permalink
remove dup function GenerateTraces
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme committed Feb 23, 2024
1 parent 4b213aa commit ed82148
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions receiver/receivertest/contract_checker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,19 +152,6 @@ func (g *exampleTraceGenerator) Generate() []UniqueIDAttrVal {
return []UniqueIDAttrVal{id}
}

func (g *exampleLogGenerator) GenerateTraces() []UniqueIDAttrVal {
// Make sure the id is atomically incremented. Generate() may be called concurrently.
id := UniqueIDAttrVal(strconv.FormatInt(atomic.AddInt64(&g.sequenceNum, 1), 10))

data := CreateOneSpanWithID(id)

// Send the generated data to the receiver.
g.receiver.ReceiveTraces(data)

// And return the ids for bookkeeping by the test.
return []UniqueIDAttrVal{id}
}

// A generator that can send data to exampleReceiver.
type exampleMetricGenerator struct {
t *testing.T
Expand Down

0 comments on commit ed82148

Please sign in to comment.