(shouldBeTrue: boolean, message: string)
| 17 | } |
| 18 | |
| 19 | export function logAssert(shouldBeTrue: boolean, message: string): boolean { |
| 20 | if (!shouldBeTrue) { |
| 21 | GLib.log_structured('Material Shell', GLib.LogLevelFlags.FLAG_FATAL, { |
| 22 | MESSAGE: 'Assertion failed: ' + message, |
| 23 | STACKTRACE: new Error().stack, |
| 24 | }); |
| 25 | } |
| 26 | return shouldBeTrue; |
| 27 | } |
no outgoing calls
no test coverage detected