Skip to content

Commit

Permalink
add args for other tests and more ignores for ones that don't work
Browse files Browse the repository at this point in the history
  • Loading branch information
David Lamb committed Dec 2, 2023
1 parent ff9095c commit 12212dd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _examples/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var examplesTest = flag.Bool("examples", false, "run the examples tests")
var defaultURL = "https://github.com/git-fixtures/basic.git"

var args = map[string][]string{
"blame": {defaultURL, "CHANGELOG"},
"branch": {defaultURL, tempFolder()},
"checkout": {defaultURL, tempFolder(), "35e85108805c84807bc66a02d91535e1e24b38b9"},
"checkout-branch": {defaultURL, tempFolder(), "branch"},
Expand All @@ -23,18 +24,23 @@ var args = map[string][]string{
"custom_http": {defaultURL},
"find-if-any-tag-point-head": {cloneRepository(defaultURL, tempFolder())},
"ls": {cloneRepository(defaultURL, tempFolder()), "HEAD", "vendor"},
"ls-remote": {defaultURL},
"merge_base": {cloneRepository(defaultURL, tempFolder()), "--is-ancestor", "HEAD~3", "HEAD^"},
"open": {cloneRepository(defaultURL, tempFolder())},
"progress": {defaultURL, tempFolder()},
"pull": {createRepositoryWithRemote(tempFolder(), defaultURL)},
"push": {setEmptyRemote(cloneRepository(defaultURL, tempFolder()))},
"revision": {cloneRepository(defaultURL, tempFolder()), "master~2^"},
"sha256": {tempFolder()},
"showcase": {defaultURL, tempFolder()},
"tag": {cloneRepository(defaultURL, tempFolder())},
}

// tests not working / set-up
var ignored = map[string]bool{
"azure_devops": true,
"ls": true,
"sha256": true,
"submodule": true,
"tag-create-push": true,
}
Expand Down

0 comments on commit 12212dd

Please sign in to comment.