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, }, ];