-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/regtest: skip TestE2E if telemetry is disabled on platform
Also add a stub version of the countertest package similar to the one in counter_disabled.go so that countertest can compile on platforms where telemetry disabled. Fixes golang/go#65544 Change-Id: I46272034a4d80fe3c79fd5bfd9073eb5ef3b6010 Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/562076 Reviewed-by: Robert Findley <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]> Reviewed-by: Bryan Mills <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
- Loading branch information
Showing
4 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright 2024 The Go Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style | ||
// license that can be found in the LICENSE file. | ||
|
||
//go:build !go1.19 || openbsd || js || wasip1 || solaris || android || 386 | ||
|
||
package countertest | ||
|
||
import "golang.org/x/telemetry/counter" | ||
|
||
func Open(telemetryDir string) {} | ||
func ReadCounter(c *counter.Counter) (count uint64, _ error) {} | ||
func ReadStackCounter(c *counter.StackCounter) (stackCounts map[string]uint64, _ error) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters