Files
wehub-resource-sync 5357c39144
Fuzzer / Run Fuzzer (push) Has been cancelled
Race tests / Go race tests (ubuntu-22.04) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:01:40 +08:00

82 lines
2.0 KiB
JavaScript

import { logsMatcher } from "./matchers.js";
export const logTests = [
{
q: `SELECT * FROM DOLT_LOG(:refName, '--parents') LIMIT :limit OFFSET :offset`,
p: { refName: "main", limit: 10, offset: 0 },
res: [
{
commit_hash: "",
committer: "mysql-test-runner",
email: "mysql-test-runner@liquidata.co",
date: "",
message: "Initialize data repository",
commit_order: 1,
parents: [],
refs: "HEAD -> main",
signature: null,
author: "mysql-test-runner",
author_email: "mysql-test-runner@liquidata.co",
author_date: "",
},
],
matcher: logsMatcher,
},
{
q: `SELECT * FROM dolt_log AS OF :refName`,
p: { refName: "mybranch" },
res: [
{
commit_hash: "",
committer: "Dolt",
email: "dolt@dolthub.com",
date: "",
message: "Create table test",
commit_order: 2,
parents: [""],
refs: "HEAD -> mybranch",
signature: "",
author: "Dolt",
author_email: "dolt@dolthub.com",
author_date: "",
},
{
commit_hash: "",
committer: "mysql-test-runner",
email: "mysql-test-runner@liquidata.co",
date: "",
message: "Initialize data repository",
commit_order: 1,
parents: [],
refs: "main",
signature: "",
author: "mysql-test-runner",
author_email: "mysql-test-runner@liquidata.co",
author_date: "",
},
],
matcher: logsMatcher,
},
{
q: `SELECT * FROM DOLT_LOG(:refRange, '--parents')`,
p: { refRange: "main..mybranch" },
res: [
{
commit_hash: "",
committer: "Dolt",
email: "dolt@dolthub.com",
date: "",
message: "Create table test",
commit_order: 2,
parents: [""],
refs: "HEAD -> mybranch",
signature: null,
author: "Dolt",
author_email: "dolt@dolthub.com",
author_date: "",
},
],
matcher: logsMatcher,
},
];