GLib.test_queue_destroy

function test_queue_destroy(destroy_func: GLib.DestroyNotify, destroy_data: void): void {
    // Gjs wrapper for g_test_queue_destroy()
}
  

This function enqueus a callback destroy_func to be executed during the next test case teardown phase. This is most useful to auto destruct allocted test resources at the end of a test run. Resources are released in reverse queue order, that means enqueueing callback A before callback B will cause B() to be called before A() during teardown.

Since 2.16

destroy_func

Destroy callback for teardown phase.

destroy_data

Destroy callback data.