Esempio n. 1
0
func checkSavedAutoUpdateOption(t *testing.T, always bool, confirm, expected string) {
	defer git.UnsetGlobalConfig(ghAutoUpdateConfig)

	saveAutoUpdateConfiguration(confirm, always)
	assert.Equal(t, expected, autoUpdateConfig())
}
Esempio n. 2
0
func checkSavedReportCrashOption(t *testing.T, always bool, confirm, expected string) {
	defer git.UnsetGlobalConfig(ghReportCrashConfig)

	saveReportConfiguration(confirm, always)
	assert.Equal(t, expected, reportCrashConfig())
}