mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-11-30 17:18:42 +00:00
test(process): refactor helper to use template parameter and const to satisfy sonar
This commit is contained in:
1 parent
ed2eae206d
commit
19c4e06185
1 file changed
+2
-1
@@ -338,7 +338,8 @@ protected:
|
||||
fs::last_write_time(path, new_time);
|
||||
}
|
||||
|
||||
void runUpdateWithPlaceboSession(const std::function<void(proc::proc_t &)> &assertions) {
|
||||
template <typename Func>
|
||||
void runUpdateWithPlaceboSession(Func assertions) const {
|
||||
boost::process::v1::environment env = boost::this_process::environment();
|
||||
std::vector<proc::ctx_t> apps_initial;
|
||||
proc::ctx_t ctx;
|
||||
|
||||
Reference in new issue
Block a user