(t *testing.T)
| 40 | } |
| 41 | |
| 42 | func TestTelemetryEnv(t *testing.T) { |
| 43 | orig := version.Version |
| 44 | t.Cleanup(func() { version.Version = orig }) |
| 45 | |
| 46 | version.Version = "main" |
| 47 | assert.Equal(t, "dev", telemetryEnv()) |
| 48 | |
| 49 | version.Version = "1.20.0" |
| 50 | assert.Equal(t, "prod", telemetryEnv()) |
| 51 | } |
| 52 | |
| 53 | // Context-related tests. |
| 54 | func TestEventMetadataWithGet(t *testing.T) { |
nothing calls this directly
no test coverage detected