export const TRUE = true; export const FALSE = false; export const passphrase = "Za39PSymj5EcuzMs9kSNsAS3KbfzKHHP"; export const gitDir = new URL("file:///home/user/project/"); const gitLogPrettyOutput = new TextEncoder().encode([ "abcdef1234567890abcdef1234567890abcdef12", // long hash "abcdef1", // short hash "2024-06-17T12:00:00Z", // author date "Alice", // author name "alice@example.com", // author email "2024-06-17T12:01:00Z", // committer date "Bob", // committer name "bob@example.com", // committer email "bob@example.com", // signer "ABCDEF", // key (short) "ABCDEF123456", // key fingerprint (long) "gpg: Signature made...", // raw line 1 "gpg: Good signature from...", // raw line 2 ].join("\n")) as Uint8Array; const gitDiffTreeOutput = new TextEncoder().encode([ "M\tfile.ts", "A\tnew_file.ts", ].join("\n")) as Uint8Array; const emptyOutput = new TextEncoder().encode("") as Uint8Array; export const gitLogPrettyCommandOutput: Promise = Promise .resolve({ stdout: gitLogPrettyOutput, code: 0, signal: null, stderr: emptyOutput, success: true, }); export const gitDiffTreeCommandOutput: Promise = Promise .resolve({ stdout: gitDiffTreeOutput, code: 0, signal: null, stderr: emptyOutput, success: true, }); export const gitRevParseCommandOutput: Promise = Promise .resolve({ stdout: new TextEncoder().encode(gitDir.pathname) as Uint8Array< ArrayBuffer >, code: 0, signal: null, stderr: emptyOutput, success: true, }); export const emptyCommandOutput: Promise = Promise.resolve({ stdout: emptyOutput, code: 0, signal: null, stderr: emptyOutput, success: true, });