MCPcopy Create free account
hub / github.com/cli/cli / TestAuthTelemetryEvent_nilIsNoOp

Function TestAuthTelemetryEvent_nilIsNoOp

pkg/cmd/auth/shared/telemetry_test.go:89–101  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

87}
88
89func TestAuthTelemetryEvent_nilIsNoOp(t *testing.T) {
90 var event *AuthTelemetryEvent
91
92 assert.NotPanics(t, func() {
93 event.RecordExpiringSetupCancelled(true)
94 event.RecordHelperBefore("none")
95 event.RecordHelperAfter("ours")
96 event.RecordGitProtocol("https")
97 event.RecordExpiringReceived(true)
98 event.RecordStorage(true)
99 event.RecordSuccess()
100 })
101}
102
103func TestHelperCategory(t *testing.T) {
104 tests := []struct {

Callers

nothing calls this directly

Calls 7

RecordHelperBeforeMethod · 0.95
RecordHelperAfterMethod · 0.95
RecordGitProtocolMethod · 0.95
RecordStorageMethod · 0.95
RecordSuccessMethod · 0.95

Tested by

no test coverage detected