MCPcopy Index your code
hub / github.com/google/go-github / TestGitService_createSignature_nilSigner

Function TestGitService_createSignature_nilSigner

github/git_commits_test.go:344–357  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

342}
343
344func TestGitService_createSignature_nilSigner(t *testing.T) {
345 t.Parallel()
346 a := &createCommit{
347 Message: Ptr("Commit Message."),
348 Tree: Ptr("t"),
349 Parents: []string{"p"},
350 }
351
352 _, err := createSignature(nil, a)
353
354 if err == nil {
355 t.Error("Expected error to be returned because no author was passed")
356 }
357}
358
359func TestGitService_createSignature_nilCommit(t *testing.T) {
360 t.Parallel()

Callers

nothing calls this directly

Calls 3

createSignatureFunction · 0.85
PtrFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…