Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/kubernetes-client/python
/ _name_of
Function
_name_of
kubernetes/e2e_test/test_informer.py:31–34 ·
view source on GitHub ↗
(obj)
Source
from the content-addressed store, hash-verified
29
30
31
def
_name_of(obj):
32
if
hasattr(obj,
"metadata"
):
33
return
obj.metadata.name
34
return
(obj.get(
"metadata"
) or {}).get(
"name"
)
35
36
37
class
TestSharedInformerE2E(unittest.TestCase):
Callers
6
test_cache_populated_after_start
Method · 0.85
test_added_event_and_cache_entry
Method · 0.85
test_modified_event_and_cache_refresh
Method · 0.85
test_deleted_event_removes_from_cache
Method · 0.85
test_resource_version_advances
Method · 0.85
test_resync_fires_modified_for_existing_objects
Method · 0.85
Calls
1
get
Method · 0.45
Tested by
no test coverage detected