// Test prompt file in old and new formats are handled as expected. func TestTelemetryPrompt_PromptFile(t *testing.T) { … } // Test that gopls prompts for telemetry only when it is supposed to. func TestTelemetryPrompt_Conditions_Mode(t *testing.T) { … } // Test that gopls prompts for telemetry only after instrumenting for a while, and // when the token is within the range for sample. func TestTelemetryPrompt_Conditions_StartTimeAndSamplingToken(t *testing.T) { … } // Test that responding to the telemetry prompt results in the expected state. func TestTelemetryPrompt_Response(t *testing.T) { … } // Test that we stop asking about telemetry after the user ignores the question // 5 times. func TestTelemetryPrompt_GivingUp(t *testing.T) { … } // Test that gopls prompts for telemetry only when it is supposed to. func TestTelemetryPrompt_Conditions_Command(t *testing.T) { … }