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

Function list

tools/pager/pager_test.go:33–44  ·  view source on GitHub ↗
(count int, rv string)

Source from the content-addressed store, hash-verified

31)
32
33func list(count int, rv string) *metainternalversion.List {
34 var list metainternalversion.List
35 for i := 0; i < count; i++ {
36 list.Items = append(list.Items, &metav1beta1.PartialObjectMetadata{
37 ObjectMeta: metav1.ObjectMeta{
38 Name: fmt.Sprintf("%d", i),
39 },
40 })
41 }
42 list.ResourceVersion = rv
43 return &list
44}
45
46type testPager struct {
47 t *testing.T

Callers 2

TestListPager_ListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected