MCPcopy Index your code
hub / github.com/google/adk-python / list_blobs

Method list_blobs

tests/unittests/artifacts/test_artifact_service.py:156–164  ·  view source on GitHub ↗

Mocks listing blobs in a bucket, optionally with a prefix.

(self, bucket: MockBucket, prefix: Optional[str] = None)

Source from the content-addressed store, hash-verified

154 return self.buckets[bucket_name]
155
156 def list_blobs(self, bucket: MockBucket, prefix: Optional[str] = None):
157 """Mocks listing blobs in a bucket, optionally with a prefix."""
158 if prefix:
159 return [
160 blob
161 for name, blob in bucket.blobs.items()
162 if name.startswith(prefix) and blob.content is not None
163 ]
164 return [blob for blob in bucket.blobs.values() if blob.content is not None]
165
166
167def mock_gcs_artifact_service():

Callers

nothing calls this directly

Calls 2

itemsMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected