MCPcopy Create free account
hub / github.com/GNOME/gjs / test_toggle_queue_empty_cancel

Function test_toggle_queue_empty_cancel

test/gjs-test-toggle-queue.cpp:203–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203static void test_toggle_queue_empty_cancel(GjsUnitTestFixture*, const void*) {
204 auto tq = ToggleQueue::get_default();
205 bool toggle_down_queued, toggle_up_queued;
206 std::tie(toggle_down_queued, toggle_up_queued) = tq->cancel(nullptr);
207 g_assert_false(toggle_down_queued);
208 g_assert_false(toggle_up_queued);
209}
210
211static void test_toggle_queue_enqueue_one(GjsUnitTestFixture* fx, const void*) {
212 ::ObjectInstance* instance = new_test_gobject(fx);

Callers

nothing calls this directly

Calls 1

cancelMethod · 0.45

Tested by

no test coverage detected