MCPcopy
hub / github.com/sourcegraph/checkup / ListObjects

Method ListObjects

storage/s3/s3_test.go:121–131  ·  view source on GitHub ↗
(input *s3.ListObjectsInput)

Source from the content-addressed store, hash-verified

119}
120
121func (s *s3Mock) ListObjects(input *s3.ListObjectsInput) (*s3.ListObjectsOutput, error) {
122 return &s3.ListObjectsOutput{
123 Contents: []*s3.Object{
124 {
125 Key: aws.String("foobar"),
126 LastModified: new(time.Time),
127 },
128 },
129 IsTruncated: aws.Bool(input.Marker == nil),
130 }, nil
131}
132
133func (s *s3Mock) DeleteObjects(input *s3.DeleteObjectsInput) (*s3.DeleteObjectsOutput, error) {
134 s.deleted = true

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected