]> Cypherpunks repositories - gostls13.git/commit
internal/trace: add a validator test for the new clock snapshots
authorFelix Geisendörfer <felix.geisendoerfer@datadoghq.com>
Sat, 3 May 2025 12:56:23 +0000 (15:56 +0300)
committerGopher Robot <gobot@golang.org>
Wed, 21 May 2025 15:22:16 +0000 (08:22 -0700)
commit847f15716625d24c6a6af8f741dff66781b6bcdd
tree0842b93e811423171cd7bd90c22bd8f70fd6e880
parent2d216141a10fc7bb7872f13b95b070df471ece45
internal/trace: add a validator test for the new clock snapshots

Check that the clock snapshots, when expected to be present, are
non-zero and monotonically increasing.

This required some refactoring to make the validator aware of the
version of the trace it is validating.

Change-Id: I04c4dd10fe6975cbac12bb0ddaebcec3a5284e7b
Reviewed-on: https://go-review.googlesource.com/c/go/+/669715
Auto-Submit: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/internal/trace/gc_test.go
src/internal/trace/reader_test.go
src/internal/trace/summary_test.go
src/internal/trace/testtrace/format.go
src/internal/trace/testtrace/validation.go
src/internal/trace/trace_test.go
src/internal/trace/tracev1_test.go