mirror of
https://github.com/hanzoai/traces.git
synced 2026-11-03 04:05:45 +00:00
* chore: upgrade otel dependencies to version v0.129.0 * remove unused mocks * fix linting * add source headers * remove formatting
27 lines
585 B
Go
27 lines
585 B
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package pprofile // import "go.opentelemetry.io/collector/pdata/pprofile"
|
|
|
|
// Equal checks equality with another LineSlice
|
|
func (l LineSlice) Equal(val LineSlice) bool {
|
|
if l.Len() != val.Len() {
|
|
return false
|
|
}
|
|
|
|
for i := range l.Len() {
|
|
if !l.At(i).Equal(val.At(i)) {
|
|
return false
|
|
}
|
|
}
|
|
|
|
return true
|
|
}
|
|
|
|
// Equal checks equality with another Line
|
|
func (l Line) Equal(val Line) bool {
|
|
return l.Column() == val.Column() &&
|
|
l.FunctionIndex() == val.FunctionIndex() &&
|
|
l.Line() == val.Line()
|
|
}
|