Record validation performance baseline
This commit is contained in:
@@ -797,7 +797,7 @@ func shellQuote(value string) string {
|
||||
return "'" + strings.ReplaceAll(value, "'", "'\\''") + "'"
|
||||
}
|
||||
|
||||
func newPublishFixture(t *testing.T) publishFixture {
|
||||
func newPublishFixture(t testing.TB) publishFixture {
|
||||
t.Helper()
|
||||
base := t.TempDir()
|
||||
work := filepath.Join(base, "work")
|
||||
@@ -870,7 +870,7 @@ func TestRaceBuildSelection(t *testing.T) {
|
||||
return publishFixture{work: work, bare: bare, commit: commit, unrelatedCommit: other}
|
||||
}
|
||||
|
||||
func gitRun(t *testing.T, dir string, args ...string) {
|
||||
func gitRun(t testing.TB, dir string, args ...string) {
|
||||
t.Helper()
|
||||
cmd := exec.Command("git", args...)
|
||||
cmd.Dir = dir
|
||||
@@ -879,7 +879,7 @@ func gitRun(t *testing.T, dir string, args ...string) {
|
||||
}
|
||||
}
|
||||
|
||||
func gitText(t *testing.T, dir string, args ...string) string {
|
||||
func gitText(t testing.TB, dir string, args ...string) string {
|
||||
t.Helper()
|
||||
cmd := exec.Command("git", args...)
|
||||
cmd.Dir = dir
|
||||
@@ -901,7 +901,7 @@ func gitBytes(t *testing.T, dir string, args ...string) string {
|
||||
return string(output)
|
||||
}
|
||||
|
||||
func writeFile(t *testing.T, root, name, contents string) {
|
||||
func writeFile(t testing.TB, root, name, contents string) {
|
||||
t.Helper()
|
||||
path := filepath.Join(root, filepath.FromSlash(name))
|
||||
if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user