MCPcopy Create free account
hub / github.com/docker/buildx / TestGitFullCommit

Function TestGitFullCommit

util/gitutil/gitutil_test.go:32–44  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

30}
31
32func TestGitFullCommit(t *testing.T) {
33 ctx := context.TODO()
34 gittestutil.Mktmp(t)
35 c, err := gitutil.New()
36 require.NoError(t, err)
37
38 gittestutil.GitInit(c, t)
39 gittestutil.GitCommit(c, t, "bar")
40
41 out, err := c.FullCommit(ctx)
42 require.NoError(t, err)
43 require.Equal(t, 40, len(out))
44}
45
46func TestGitShortCommit(t *testing.T) {
47 ctx := context.TODO()

Callers

nothing calls this directly

Calls 6

MktmpFunction · 0.92
NewFunction · 0.92
GitInitFunction · 0.92
GitCommitFunction · 0.92
FullCommitMethod · 0.80
EqualMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…