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

Function warn64

installed-tests/js/testGObjectClass.js:16–24  ·  view source on GitHub ↗
(func, ...args)

Source from the content-addressed store, hash-verified

14// Sometimes tests pass if we are comparing two inaccurate values in JS with
15// each other. That's fine for now. Then we just have to suppress the warnings.
16function warn64(func, ...args) {
17 GLib.test_expect_message('Gjs', GLib.LogLevelFlags.LEVEL_WARNING,
18 '*cannot be safely stored*');
19 const ret = func(...args);
20 const error = new Error();
21 GLib.test_assert_expected_messages_internal('Gjs',
22 error.fileName, error.lineNumber, 'warn64');
23 return ret;
24}
25
26const MyObject = GObject.registerClass({
27 Properties: {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected