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

Function TestMigration_String

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

Source from the content-addressed store, hash-verified

1113}
1114
1115func TestMigration_String(t *testing.T) {
1116 t.Parallel()
1117 v := Migration{
1118 ID: Ptr(int64(0)),
1119 GUID: Ptr(""),
1120 State: Ptr(""),
1121 LockRepositories: Ptr(false),
1122 ExcludeAttachments: Ptr(false),
1123 URL: Ptr(""),
1124 CreatedAt: Ptr(""),
1125 UpdatedAt: Ptr(""),
1126 }
1127 want := `github.Migration{ID:0, GUID:"", State:"", LockRepositories:false, ExcludeAttachments:false, URL:"", CreatedAt:"", UpdatedAt:""}`
1128 if got := v.String(); got != want {
1129 t.Errorf("Migration.String = %v, want %v", got, want)
1130 }
1131}
1132
1133func TestMilestone_String(t *testing.T) {
1134 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…