MCPcopy Create free account
hub / github.com/google/go-github / TestCommitFile_String

Function TestCommitFile_String

github/github-stringify_test.go:433–452  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

431}
432
433func TestCommitFile_String(t *testing.T) {
434 t.Parallel()
435 v := CommitFile{
436 SHA: Ptr(""),
437 Filename: Ptr(""),
438 Additions: Ptr(0),
439 Deletions: Ptr(0),
440 Changes: Ptr(0),
441 Status: Ptr(""),
442 Patch: Ptr(""),
443 BlobURL: Ptr(""),
444 RawURL: Ptr(""),
445 ContentsURL: Ptr(""),
446 PreviousFilename: Ptr(""),
447 }
448 want := `github.CommitFile{SHA:"", Filename:"", Additions:0, Deletions:0, Changes:0, Status:"", Patch:"", BlobURL:"", RawURL:"", ContentsURL:"", PreviousFilename:""}`
449 if got := v.String(); got != want {
450 t.Errorf("CommitFile.String = %v, want %v", got, want)
451 }
452}
453
454func TestCommitStats_String(t *testing.T) {
455 t.Parallel()

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
PtrFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…