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

Function TestNestedStructAccessorNoPanic

github/github_test.go:4171–4179  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

4169}
4170
4171func TestNestedStructAccessorNoPanic(t *testing.T) {
4172 t.Parallel()
4173 issue := &Issue{User: nil}
4174 got := issue.GetUser().GetPlan().GetName()
4175 want := ""
4176 if got != want {
4177 t.Errorf("Issues.Get.GetUser().GetPlan().GetName() returned %+v, want %+v", got, want)
4178 }
4179}
4180
4181func TestTwoFactorAuthError(t *testing.T) {
4182 t.Parallel()

Callers

nothing calls this directly

Calls 3

GetUserMethod · 0.95
GetNameMethod · 0.45
GetPlanMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…