diff --git a/pkg/gitfs/tarscrub_test.go b/pkg/gitfs/tarscrub_test.go index 6a1e9fe1..78d64986 100644 --- a/pkg/gitfs/tarscrub_test.go +++ b/pkg/gitfs/tarscrub_test.go @@ -14,7 +14,7 @@ import ( // this example is nice because it has some intentionally dangling symlinks in it that trip things up if they aren't implemented correctly! // (see also pkg/tarscrub/git_test.go) -func ExampleGitVarnish() { +func Example_gitVarnish() { repo, err := git.Clone(memory.NewStorage(), nil, &git.CloneOptions{ URL: "https://github.com/varnish/docker-varnish.git", SingleBranch: true, @@ -46,7 +46,7 @@ func ExampleGitVarnish() { // this example is nice because it has a different committer vs author timestamp // https://github.com/tianon/docker-bash/commit/eb7e541caccc813d297e77cf4068f89553256673 // https://github.com/docker-library/official-images/blob/8718b8afb62ff1a001d99bb4f77d95fe352ba187/library/bash -func ExampleGitBash() { +func Example_gitBash() { repo, err := git.Clone(memory.NewStorage(), nil, &git.CloneOptions{ URL: "https://github.com/tianon/docker-bash.git", SingleBranch: true, diff --git a/pkg/tarscrub/git_test.go b/pkg/tarscrub/git_test.go index b84bf2fb..dc85b33c 100644 --- a/pkg/tarscrub/git_test.go +++ b/pkg/tarscrub/git_test.go @@ -12,7 +12,7 @@ import ( "github.com/go-git/go-git/v5/storage/memory" ) -func ExampleGitHello() { +func Example_gitHello() { repo, err := git.Clone(memory.NewStorage(), nil, &git.CloneOptions{ URL: "https://github.com/docker-library/hello-world.git", SingleBranch: true, @@ -43,7 +43,7 @@ func ExampleGitHello() { // this example is nice because it has some intentionally dangling symlinks in it that trip things up if they aren't implemented correctly! // (see also pkg/gitfs/tarscrub_test.go) -func ExampleGitVarnish() { +func Example_gitVarnish() { repo, err := git.Clone(memory.NewStorage(), nil, &git.CloneOptions{ URL: "https://github.com/varnish/docker-varnish.git", SingleBranch: true,