MCPcopy Create free account
hub / github.com/cloudflare/computer / sample

Function sample

packages/computer/src/git/cli.test.ts:997–1014  ·  view source on GitHub ↗
(oid: string, msg: string)

Source from the content-addressed store, hash-verified

995
996describe("runGitCli — log argv parsing", () => {
997 const sample = (oid: string, msg: string): CommitView => ({
998 oid,
999 message: msg,
1000 tree: "",
1001 parent: [],
1002 author: {
1003 name: "A",
1004 email: "a@x",
1005 timestamp: 1_700_000_000,
1006 timezoneOffset: 0,
1007 },
1008 committer: {
1009 name: "A",
1010 email: "a@x",
1011 timestamp: 1_700_000_000,
1012 timezoneOffset: 0,
1013 },
1014 });
1015
1016 it("--oneline emits one line per commit", async () => {
1017 const { client } = fakeClient(

Callers 1

cli.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected