MCPcopy Index your code
hub / github.com/coder/coder / TestTelemetryInstallSource

Function TestTelemetryInstallSource

coderd/telemetry/telemetry_test.go:591–597  ·  view source on GitHub ↗

nolint:paralleltest

(t *testing.T)

Source from the content-addressed store, hash-verified

589
590// nolint:paralleltest
591func TestTelemetryInstallSource(t *testing.T) {
592 t.Setenv("CODER_TELEMETRY_INSTALL_SOURCE", "aws_marketplace")
593 ctx := testutil.Context(t, testutil.WaitMedium)
594 db, _ := dbtestutil.NewDB(t)
595 deployment, _ := collectSnapshot(ctx, t, db, nil)
596 require.Equal(t, "aws_marketplace", deployment.InstallSource)
597}
598
599func TestTelemetryItem(t *testing.T) {
600 t.Parallel()

Callers

nothing calls this directly

Calls 5

ContextFunction · 0.92
NewDBFunction · 0.92
collectSnapshotFunction · 0.85
SetenvMethod · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected