MCPcopy
hub / github.com/kubernetes/client-go / ExpiresOnSecondPageThenFullList

Method ExpiresOnSecondPageThenFullList

tools/pager/pager_test.go:111–118  ·  view source on GitHub ↗
(ctx context.Context, options metav1.ListOptions)

Source from the content-addressed store, hash-verified

109}
110
111func (p *testPager) ExpiresOnSecondPageThenFullList(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) {
112 if p.continuing {
113 p.reset()
114 p.expectPage = 0
115 return nil, errors.NewResourceExpired("this list has expired")
116 }
117 return p.PagedList(ctx, options)
118}
119func TestListPager_List(t *testing.T) {
120 type fields struct {
121 PageSize int64

Callers

nothing calls this directly

Calls 2

resetMethod · 0.95
PagedListMethod · 0.95

Tested by

no test coverage detected