This commit is contained in:
2025-12-12 21:39:48 +01:00
parent ddbd99b747
commit cae81b1088
49 changed files with 777 additions and 269 deletions

View File

@@ -61,12 +61,15 @@ export class IPCVerifier {
const typed: IpcHandlerResult = result as IpcHandlerResult;
return {
const resultObj: IPCTestResult = {
channel,
success: !typed.error,
error: typed.error,
duration: Date.now() - start,
};
if (typed.error) {
resultObj.error = typed.error;
}
return resultObj;
} catch (error) {
return {
channel,
@@ -114,12 +117,15 @@ export class IPCVerifier {
const typed: IpcHandlerResult = result as IpcHandlerResult;
return {
const resultObj: IPCTestResult = {
channel,
success: !typed.error,
error: typed.error,
duration: Date.now() - start,
};
if (typed.error) {
resultObj.error = typed.error;
}
return resultObj;
} catch (error) {
return {
channel,
@@ -173,12 +179,15 @@ export class IPCVerifier {
const typed: IpcHandlerResult = result as IpcHandlerResult;
return {
const resultObj: IPCTestResult = {
channel,
success: !typed.error,
error: typed.error,
duration: Date.now() - start,
};
if (typed.error) {
resultObj.error = typed.error;
}
return resultObj;
} catch (error) {
return {
channel,