MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / TEST

Function TEST

tests/host/settings/settings_saver_test.cpp:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30using namespace oid::host;
31
32TEST(SettingsSaver, NoSaveWhenUnchanged) {
33 int saves = 0;
34 AppSettings s;
35 SettingsSaver saver{s, [&saves](const AppSettings&) { ++saves; }, 0.75};
36 saver.update(s, 0.0);
37 saver.update(s, 100.0);
38 EXPECT_EQ(saves, 0);
39}
40
41TEST(SettingsSaver, ChangeSavesOnlyAfterDebounce) {
42 int saves = 0;

Callers

nothing calls this directly

Calls 2

flushMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected