fetchSecondFetchFails,
}
+ for _, f := range tests {
+ runMainTest(t, f)
+ }
+}
+
+func runMainTest(t *testing.T, f func(args)) {
cleanup := []string{
configPath,
statePath,
groupPath,
}
- for _, f := range tests {
// NOTE: This is not guaranteed to work according to reflect's
// documentation but seems to work reliable for normal
// functions.
handler: &handler,
})
})
- }
}
func fetchPasswdCacheFileDoesNotExist(a args) {